- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for test_value (0.19 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
testValues := []string{"100m", "1Gi"} zero := MustParse("0") for _, testValue := range testValues { value := MustParse(testValue) v1 := value.DeepCopy() // ensure non-zero - zero = non-zero (suffix preserved) v1.Sub(zero) // ensure we preserved the input value if v1.String() != testValue { t.Errorf("Expected %v, actual %v", testValue, v1.String()) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/decompose_optionals.mlir
func.func @from_value(%arg0: tensor<f32>) { // CHECK-NOT: Optional %0 = "tf.OptionalFromValue"(%arg0) : (tensor<f32>) -> tensor<!tf_type.variant<tensor<f32>>> return } // ----- // CHECK-LABEL: @get_value func.func @get_value(%arg0: tensor<!tf_type.variant<tensor<f32>>>) { // CHECK-NOT: Optional %1 = "tf.OptionalGetValue"(%arg0) : (tensor<!tf_type.variant<tensor<f32>>>) -> tensor<f32> return } // -----
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 4.5K bytes - Viewed (0) -
src/net/http/request_test.go
return req } func validateTestMultipartContents(t *testing.T, req *Request, allMem bool) { if g, e := req.FormValue("texta"), textaValue; g != e { t.Errorf("texta value = %q, want %q", g, e) } if g, e := req.FormValue("textb"), textbValue; g != e { t.Errorf("textb value = %q, want %q", g, e) } if g := req.FormValue("missing"); g != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:42:34 UTC 2024 - 44K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/sub-dependencies.md
async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]): return {"fresh_value": fresh_value} ``` === "Python 3.8+ non-Annotated" !!! tip Prefer to use the `Annotated` version if possible. ```Python hl_lines="1" async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)): return {"fresh_value": fresh_value} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat May 18 23:43:13 UTC 2024 - 5.6K bytes - Viewed (0) -
src/maps/iter_test.go
var got []int for k := range Keys(m) { got = append(got, k) } slices.Sort(got) if !slices.Equal(got, want) { t.Errorf("Keys(%v) = %v, want %v", m, got, want) } } } func TestValues(t *testing.T) { for size := 0; size < 10; size++ { var want []int m := make(map[int]int) for i := range size { m[i] = i want = append(want, i) } var got []int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:44:19 UTC 2024 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc
// fallback legalization. auto cast_value = [&](OpBuilder& builder, Type result_type, ValueRange inputs, Location loc) -> Value { return builder.create<mlir::tensor::CastOp>(loc, result_type, inputs.front()); }; addSourceMaterialization(cast_value); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_reduce_dataset.cc
auto& then_branch = dataset_if.getThenBranch(); then_branch.push_back(new Block); builder.setInsertionPointToEnd(&then_branch.front()); // Add iterator operational data access inside if. auto get_value = builder.create<TF::OptionalGetValueOp>(loc, dataset_types, get_next.getResult()); SmallVector<Value, 4> reduce_fn_args;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14K bytes - Viewed (0) -
src/slices/iter_test.go
t.Errorf("at iteration %d got %d, %d want %d, %d", cnt, i, v, ei, ev) } ei-- ev-- cnt++ } if cnt != size { t.Errorf("read %d values expected %d", cnt, size) } } } func TestValues(t *testing.T) { for size := 0; size < 10; size++ { var s []int for i := range size { s = append(s, i) } ev := 0 cnt := 0 for v := range Values(s) { if v != ev {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 5.7K bytes - Viewed (0) -
src/flag/flag.go
} ptrVal.Elem().Set(defVal) return textValue{p} } func (v textValue) Set(s string) error { return v.p.UnmarshalText([]byte(s)) } func (v textValue) Get() interface{} { return v.p } func (v textValue) String() string { if m, ok := v.p.(encoding.TextMarshaler); ok { if b, err := m.MarshalText(); err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:38:24 UTC 2024 - 39.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
bool is_mul = llvm::isa<MulOp>(binary_op); auto new_filter = filter_cst.mapValues(filter_type.getElementType(), [&](APFloat it) { return (is_mul ? it * cst_value : it / cst_value).bitcastToAPInt(); }); // We recreate the constant op in case it is shared by the other ops. This // might increase the model size. auto new_filter_op = rewriter.create<ConstOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0)