Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for test_func (0.2 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. 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)
  5. src/cmd/go/internal/load/test.go

    func formatTestmain(t *testFuncs) ([]byte, error) {
    	var buf bytes.Buffer
    	tmpl := testmainTmpl
    	if cfg.Experiment.CoverageRedesign {
    		tmpl = testmainTmplNewCoverage
    	}
    	if err := tmpl.Execute(&buf, t); err != nil {
    		return nil, err
    	}
    	return buf.Bytes(), nil
    }
    
    type testFuncs struct {
    	Tests       []testFunc
    	Benchmarks  []testFunc
    	FuzzTargets []testFunc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_fuzz.txt

    Roland Shoemaker <******@****.***> 1678919846 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  7. src/archive/tar/writer_test.go

    		maker fileMaker
    		tests []testFnc
    	}{{
    		maker: makeReg{0, ""},
    		tests: []testFnc{
    			testRemaining{0, 0},
    			testWrite{"", 0, nil},
    			testWrite{"a", 0, ErrWriteTooLong},
    			testReadFrom{fileOps{""}, 0, nil},
    			testReadFrom{fileOps{"a"}, 0, ErrWriteTooLong},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeReg{1, "a"},
    		tests: []testFnc{
    			testRemaining{1, 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  8. pkg/controller/nodeipam/ipam/range_allocator_test.go

    				NodeCIDRMaskSizes:    []int{24},
    			},
    			expectedAllocatedCIDR: map[int]string{
    				0: "10.10.1.0/24",
    			},
    		},
    	}
    
    	// test function
    	_, tCtx := ktesting.NewTestContext(t)
    	testFunc := func(tc testCase) {
    		fakeNodeInformer := test.FakeNodeInformer(tc.fakeNodeHandler)
    		nodeList, _ := tc.fakeNodeHandler.List(tCtx, metav1.ListOptions{})
    		// Initialize the range allocator.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  9. src/archive/tar/reader_test.go

    	)
    
    	vectors := []struct {
    		maker fileMaker
    		tests []testFnc
    	}{{
    		maker: makeReg{"", 0},
    		tests: []testFnc{
    			testRemaining{0, 0},
    			testRead{0, "", io.EOF},
    			testRead{1, "", io.EOF},
    			testWriteTo{nil, 0, nil},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeReg{"", 1},
    		tests: []testFnc{
    			testRemaining{1, 1},
    			testRead{5, "", io.ErrUnexpectedEOF},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/TestDB.h

    CU_pTest CU_add_test(CU_pSuite pSuite, const char* strName, CU_TestFunc pTestFunc);
    /**<
     *  This function creates a new test having the specified name 
     *  and function, and adds it to the specified suite.  The new test 
     *  is active and able to be executed during a test run.  At present, 
     *  there is no mechanism for creating a test case independent of a 
     *  suite.  Neither pSuite, strName, nor pTestFunc may be NULL.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 40.4K bytes
    - Viewed (0)
Back to top