Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 73 for Testfunc (0.62 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. 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)
  4. 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)
  5. pkg/scheduler/internal/queue/testing.go

    func NewTestQueue(ctx context.Context, lessFn framework.LessFunc, opts ...Option) *PriorityQueue {
    	return NewTestQueueWithObjects(ctx, lessFn, nil, opts...)
    }
    
    // NewTestQueueWithObjects creates a priority queue with an informer factory
    // populated with the provided objects.
    func NewTestQueueWithObjects(
    	ctx context.Context,
    	lessFn framework.LessFunc,
    	objs []runtime.Object,
    	opts ...Option,
    ) *PriorityQueue {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 10 00:53:58 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  6. 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)
  7. src/internal/coverage/test/counter_test.go

    				continue
    			}
    			var fp decodecounter.FuncPayload
    			if ok, err := cdr.NextFunc(&fp); err != nil {
    				t.Fatalf("reading func %d: %v", i, err)
    			} else if !ok {
    				t.Fatalf("reading func %d: bad return", i)
    			}
    			got := fmt.Sprintf("%+v", fp)
    			want := fmt.Sprintf("%+v", funcs[i])
    			if got != want {
    				t.Errorf("cdr.NextFunc iter %d\ngot  %+v\nwant %+v", i, got, want)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 26 12:44:34 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top