Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 456 for test_1 (0.12 sec)

  1. tensorflow/compiler/mlir/lite/debug/debug_test.cc

        return tsl::io::JoinPath(
            getenv("TEST_UNDECLARED_OUTPUTS_DIR"),
            absl::StrCat(test_info->test_suite_name(), ".", test_info->name()));
      }
    };
    
    TEST_F(InitPassManagerTest, CrashReproducer) {
      converter::DebugOptions debug_options;
      *debug_options.mutable_ir_dump_dir() = path_;
    
      mlir::PassManager pm(&context_);
      InitPassManager(pm, debug_options);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 11:15:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/gover/gover_test.go

    	in2 In2
    	in3 In3
    	out Out
    }
    
    func test1[In, Out any](t *testing.T, tests []testCase1[In, Out], name string, f func(In) Out) {
    	t.Helper()
    	for _, tt := range tests {
    		if out := f(tt.in); !reflect.DeepEqual(out, tt.out) {
    			t.Errorf("%s(%v) = %v, want %v", name, tt.in, out, tt.out)
    		}
    	}
    }
    
    func test2[In1, In2, Out any](t *testing.T, tests []testCase2[In1, In2, Out], name string, f func(In1, In2) Out) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc

        }
        return absl::OkStatus();
      }
    
      DialectRegistry registry_;
      MLIRContext context_;
      OwningOpRef<mlir::ModuleOp> mlir_module_;
    };
    
    TEST_F(TensorflowDialectToExecutorTest, ConvertsToExecutor) {
      CellReader<int64_t> compilation_status(kExportStreamzName);
    
      TF_ASSERT_OK(CreateMlirModule("empty_func.mlir"));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator_test.go

    						Expression: "this.expression == unit.test",
    						Message:    "test2",
    					},
    				},
    			},
    			policyDecision: []PolicyDecision{
    				{
    					Action:  ActionDeny,
    					Reason:  metav1.StatusReasonForbidden,
    					Message: "test1",
    				},
    				{
    					Action:  ActionDeny,
    					Reason:  metav1.StatusReasonForbidden,
    					Message: "test2",
    				},
    			},
    			failPolicy: &fail,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/utils/dialect_detection_utils_test.cc

    using mlir::UnknownLoc;
    using mlir::chlo::ChloDialect;
    using mlir::TF::TensorFlowDialect;
    using tensorflow::tf2xla::internal::IsInBridgeAcceptableDialects;
    
    class SharedUtilsTest : public ::testing::Test {};
    
    TEST_F(SharedUtilsTest, IsInFunctionalDialectPasses) {
      MLIRContext context;
      context.loadDialect<TensorFlowDialect>();
      OpBuilder opBuilder(&context);
      OperationState state(UnknownLoc::get(opBuilder.getContext()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 20:33:37 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

      }
      return nullptr;
    }
    
    TEST_F(QuantizeWeightsTest, QuantizationSucceeds) {
      LoadBasicModel();
      flatbuffers::FlatBufferBuilder builder;
      auto status = QuantizeWeights(&builder, model_, 0);
      EXPECT_EQ(status, kTfLiteOk);
    
      const uint8_t* buffer = builder.GetBufferPointer();
      const Model* output_model = GetModel(buffer);
      ASSERT_TRUE(output_model);
    }
    
    TEST_F(QuantizeWeightsTest, QuantizationFails) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/GradleTaskGetGroupCrossVersionSpec.groovy

                assert it.group == "task group ${it.name-'test'}"
            }
        }
    
        def "provide getGroup on Task using GradleProject shouldn't fail if group is null"() {
            file("build.gradle") << '''
    task test1()
    task test2()
    '''
    
            when:
            def gradleProject = withConnection { ProjectConnection connection ->
                connection.getModel(GradleProject)
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. tensorflow/cc/experimental/libtf/tests/function_test.cc

      auto value = static_cast<T*>(TF_TensorData(result_t));
      EXPECT_EQ(*value, expected);
      TF_DeleteTensor(result_t);
    }
    
    // TODO(srbs): Add tests for captures.
    // TODO(srbs): Add tests for polymorphism (different shapes and dtypes).
    TEST_P(FunctionTest, Square) {
      // Construct a scalar.
      impl::TaggedValueTensor x = CreateScalarTensor<float, TF_FLOAT>(2.0f);
      FunctionDef fdef = SquareFunc();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc

    #include "xla/shape.h"
    #include "xla/shape_util.h"
    #include "xla/tests/literal_test_util.h"
    #include "tensorflow/core/framework/tensor.h"
    #include "tensorflow/core/framework/tensor_shape.h"
    #include "tsl/platform/errors.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir::quant::stablehlo {
    namespace {
    
    using ::testing::Test;
    
    class ConvertTfQuantToMhloIntTest : public Test {
     protected:
      void SetUp() override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 03 01:03:21 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_compiler_options_util_test.cc

                                                        GetShapeDeterminationFns());
    }
    
    class XlaCompilerOptionsTest : public ::testing::Test {
     protected:
      void SetUp() override {
        tensorflow::GetXlaDeviceFlags()->tf_xla_enable_xla_devices = true;
      }
    
      DeviceSetup device_setup_;
    };
    
    TEST_F(XlaCompilerOptionsTest, PjRtOptionsXlaDevice) {
      device_setup_.AddDevicesAndSetUp({DEVICE_XLA_GPU});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 29 01:41:20 UTC 2023
    - 14.8K bytes
    - Viewed (0)
Back to top