Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 380 for test_1 (0.13 sec)

  1. tensorflow/compiler/mlir/quantization/common/func_test.cc

    namespace mlir::quant {
    namespace {
    
    using ::testing::IsNull;
    using ::testing::NotNull;
    
    using FindMainFuncOpTest = ::mlir::quant::QuantizationTestBase;
    
    TEST_F(FindMainFuncOpTest, ReturnsMainFuncOp) {
      constexpr absl::string_view kModuleWithMainFunc = R"mlir(
        module {
          func.func @main() -> () {
            return
          }
        }
      )mlir";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 09:05:02 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher_test.go

    			evaluations: []cel.EvaluationResult{
    				{
    					EvalResult: celtypes.False,
    					ExpressionAccessor: &MatchCondition{
    						Name: "test1",
    					},
    				},
    				{
    					EvalResult: celtypes.True,
    					ExpressionAccessor: &MatchCondition{
    						Name: "test2",
    					},
    				},
    			},
    			shouldMatch:  false,
    			returnedName: "test1",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass_test.cc

    namespace mlir {
    namespace TFDevice {
    
    using ::mlir::MLIRContext;
    using ::mlir::ModuleOp;
    using ::mlir::OwningOpRef;
    using ::mlir::mhlo::test::GetMlirModuleFromString;
    
    class VerifyNoOutsideCompilationMarkersPassTest : public ::testing::Test {
     protected:
      void CreateModule(const char* module_string) {
        TF_ASSERT_OK_AND_ASSIGN(module_,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. src/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.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/lower_cluster_to_runtime_ops_test.cc

      Env* env_;
      std::string test_dir_;
      std::string test_group_name_;
    };
    
    TEST_F(LowerClusterToRuntimeOpsTest, SanityCheck) {
      TF_ASSERT_OK(CreateMlirModule("empty_func.mlir"));
    
      TF_EXPECT_OK(RunLowerClusterToRuntimeOpsPassPipeline(
          *mlir_module_, DeviceType(DEVICE_TPU_XLA_JIT)));
    }
    
    TEST_F(LowerClusterToRuntimeOpsTest, LowersClusterOpsTPU) {
      TF_ASSERT_OK(CreateMlirModule("basic_cluster.mlir"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:44:37 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc

          return %0 : tensor<1x3xf32>
        }
      }
    )mlir";
    
    TEST_F(IsOpQuantizableStableHloTest, ConstantOpQuantizable) {
      OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleConstantAdd);
      ASSERT_TRUE(module_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

      TF_Graph* graph_;
      TF_Graph* expected_graph_;
    };
    
    TEST_F(CApiGradientsTest, Gradients_GradInputs) { TestGradientsSuccess(true); }
    
    TEST_F(CApiGradientsTest, Gradients_NoGradInputs) {
      TestGradientsSuccess(false);
    }
    
    TEST_F(CApiGradientsTest, OpWithNoGradientRegistered_GradInputs) {
      TestGradientsError(true);
    }
    
    TEST_F(CApiGradientsTest, OpWithNoGradientRegistered_NoGradInputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op_test.cc

    using ::testing::ElementsAre;
    using ::testing::HasSubstr;
    using ::testing::Key;
    using ::testing::SizeIs;
    using ::tsl::testing::StatusIs;
    
    class CalibrationStatisticsSaverTest : public OpsTestBase {};
    
    TEST_F(CalibrationStatisticsSaverTest, MissingOutputPath) {
      std::vector<std::string> ids{"1"};
      std::vector<int32_t> calibration_methods{
          CalibrationOptions::CALIBRATION_METHOD_AVERAGE_MIN_MAX};
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_platform_info_test.cc

      EXPECT_TRUE(
          xla_device_compiler->persistor()->persistent_cache_directory().empty());
    }
    
    // TODO(b/255826209): Look into using an actual TPU device for the unit test,
    // and move this out of OSS.
    TEST_F(XlaPlatformInfoTest,
           GetOrCreatePjRtDeviceCompilerAndProfilerTpuDeviceNoCompilationCache) {
      tensorflow::GetMarkForCompilationPassFlags()
          ->tf_xla_persistent_cache_directory = "/tmp/xla_cache";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Jan 14 15:17:12 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/testing/testng-groupbyinstances/kotlin/src/test/java/org/gradle/testng/TestFactory.java

            System.out.println("TestFactory[" + data + "].beforeClass()");
        }
    
        @Test
        public void test1() {
            System.out.println("TestFactory[" + data + "].test1()");
        }
    
        @Test(dependsOnMethods = {"test1"})
        public void test2() {
            System.out.println("TestFactory[" + data + "].test2()");
        }
    
        @AfterClass
        public void afterClass() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top