Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 76 for testfunc (0.6 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. 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)
  3. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/TestRun.h

     *
     *  24-May-2006   Added callbacks for suite start and complete events.
     *                Added tracking/reported of elapsed time.  (JDS)
     */
    
    /** @file
     *  Test run management functions (user interface).
     *  The TestRun module implements functions supporting the running
     *  of tests elements (suites and tests).  This includes functions for
     *  running suites and tests, retrieving the number of tests/suites run,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 22K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/testdata/closure_test.go

    	a := 0
    	b := func() {
    		switch {
    		}
    		a++
    	}
    	b()
    	b()
    	return a
    }
    
    func testCFunc(t *testing.T) {
    	if want, got := 2, testCFunc_ssa(); got != want {
    		t.Errorf("expected %d, got %d", want, got)
    	}
    }
    
    // TestClosure tests closure related behavior.
    func TestClosure(t *testing.T) {
    	testCFunc(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 572 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. test/typeparam/issue50485.dir/a.go

    func LessGiven[T ImplicitOrd]() Ord[T] {
    	return LessFunc[T](func(a, b T) bool {
    		return a < b
    	})
    }
    
    type Eq[T any] interface {
    	Eqv(a T, b T) bool
    }
    
    type Ord[T any] interface {
    	Eq[T]
    	Less(a T, b T) bool
    }
    
    type LessFunc[T any] func(a, b T) bool
    
    func (r LessFunc[T]) Eqv(a, b T) bool {
    	return r(a, b) == false && r(b, a) == false
    }
    
    func (r LessFunc[T]) Less(a, b T) bool {
    	return r(a, b)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/api_object_versioner_test.go

    		{Version: " ", Err: true},
    		{Version: "1", ExpectVersion: 1},
    		{Version: "10", ExpectVersion: 10},
    	}
    
    	v := APIObjectVersioner{}
    	testFuncs := []func(string) (uint64, error){
    		v.ParseResourceVersion,
    	}
    
    	for _, testCase := range testCases {
    		for i, f := range testFuncs {
    			version, err := f(testCase.Version)
    			switch {
    			case testCase.Err && err == nil:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 16:18:15 UTC 2022
    - 3K bytes
    - Viewed (0)
  10. pkg/scheduler/internal/heap/heap.go

    	// in "items".
    	queue []string
    
    	// keyFunc is used to make the key used for queued item insertion and retrieval, and
    	// should be deterministic.
    	keyFunc KeyFunc
    	// lessFunc is used to compare two objects in the heap.
    	lessFunc lessFunc
    }
    
    var (
    	_ = heap.Interface(&data{}) // heapData is a standard heap
    )
    
    // Less compares two objects and returns true if the first one should go
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 29 18:37:35 UTC 2022
    - 6.7K bytes
    - Viewed (0)
Back to top