Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for test_func (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold_test.cc

          }
        }
      )mlir";
    
      OwningOpRef<ModuleOp> module_op_ref = ParseModuleOpString(kModuleCode);
      const auto test_func =
          module_op_ref->lookupSymbol<func::FuncOp>("test_fold_constant");
      ASSERT_THAT(test_func, NotNull());
    
      Operation* mul_op = FindOperationOfType<TF::MulOp>(test_func);
      SmallVector<Value> results = ConstantFoldOpIfPossible(mul_op);
      EXPECT_THAT(results, SizeIs(1));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec_test.cc

      ASSERT_TRUE(module_op);
    
      auto test_func =
          module_op->lookupSymbol<func::FuncOp>("same_scale_after_composite");
      ASSERT_THAT(test_func, NotNull());
    
      auto quantize_op = FindOperationOfType<quantfork::QuantizeCastOp>(test_func);
      EXPECT_FALSE(IsOpQuantizableStableHlo(quantize_op));
    
      auto dequantize_op =
          FindOperationOfType<quantfork::DequantizeCastOp>(test_func);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc

           {MlirOptimizationPassState::Enabled});
    
      GraphDef original_graph_def;
      graph_->ToGraphDef(&original_graph_def);
    
      EXPECT_EQ(
          function_optimization_pass_.Run(
              "test_func", device_set_, config_proto_, function_options_, &graph_,
              flib_.get(), &control_ret_node_names_, &control_rets_updated_),
          Status(absl::StatusCode::kAborted, "aborted"));
      verifyGraph(original_graph_def);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 08:25:30 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  4. cluster/addons/addon-manager/kube-addons-test.sh

        return 1
      fi
    }
    
    function test_func() {
      local -r name="${1}"
    
      echo_blue "=== TEST ${name}"
      setup
      if ! "${name}"; then
        failures=$((failures+1))
        error "=== FAIL"
      else
        echo_green "=== PASS"
      fi
      teardown
    }
    
    failures=0
    test_func test_create_resource_reconcile
    test_func test_create_resource_ensureexists
    test_func test_create_multiresource
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 25 02:46:18 UTC 2021
    - 9.3K bytes
    - Viewed (0)
  5. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestWithLibraryIntegrationTest.groovy

                    return lib();
                }
            """
        }
    
        @Override
        protected void changeTestImplementation() {
            file("src/test/cpp/test_lib.cpp") << """
                void test_func() { }
            """
        }
    
        @Override
        protected void assertTestCasesRan() {
            // ok
        }
    
        @Override
        protected String[] getTasksToCompileComponentUnderTest(String architecture) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestWithoutComponentIntegrationTest.groovy

                    return test();
                }
            """
        }
    
        @Override
        protected void changeTestImplementation() {
            file("src/test/cpp/test.cpp") << """
                void test_func() { }
            """
        }
    
        @Override
        protected void assertTestCasesRan() {
            // Ok
        }
    
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestWithApplicationIntegrationTest.groovy

                    return app();
                }
            """
        }
    
        @Override
        protected void changeTestImplementation() {
            file("src/test/cpp/test_app.cpp") << """
                void test_func() { }
            """
        }
    
        @Override
        protected void assertTestCasesRan() {
            // Ok
        }
    
        @Override
        protected String getComponentUnderTestDsl() {
            return "application"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/aot/tests/make_test_graphs.py

      math_ops.add(x, y, name='x_y_sum')
    
    
    def tffunction(_):
    
      @function.Defun(dtypes.int32, dtypes.int32)
      def test_func(a, b):
        return a + b
    
      x = constant_op.constant([1], name='x_const')
      y = constant_op.constant([2], name='y_const')
      test_func(x, y, name='func_call')  # pylint: disable=unexpected-keyword-arg
    
    
    def tfsplits(_):
      """A more complex graph, including splits."""
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 15 15:25:23 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  9. src/flag/flag_test.go

    	Uint64("test_uint64", 0, "uint64 value")
    	String("test_string", "0", "string value")
    	Float64("test_float64", 0, "float64 value")
    	Duration("test_duration", 0, "time.Duration value")
    	Func("test_func", "func value", func(string) error { return nil })
    	BoolFunc("test_boolfunc", "func", func(string) error { return nil })
    
    	m := make(map[string]*Flag)
    	desired := "0"
    	visitor := func(f *Flag) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  10. test/range4.go

    	}
    	if ncalls != 3 {
    		println("wrong number of calls:", ncalls, "!= 3")
    		panic("fail")
    	}
    }
    
    func main() {
    	testfunc0()
    	testfunc1()
    	testfunc2()
    	testfunc3()
    	testfunc4()
    	testfunc5()
    	testfunc6()
    	testfunc7()
    	testfunc8()
    	testfunc9()
    	testcalls()
    	testcalls1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 16:00:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top