- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 106 for setZero (0.19 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/custom_aggregator_op.cc
Tensor* histogram_tensor) { const auto input_flat = input_tensor.flat<float>(); auto histogram_flat = histogram_tensor->flat<int64_t>(); histogram_flat.setZero(); const float bin_width = CalculateBinWidth(min_value, max_value, num_bins); const float lower_bound = CalculateLowerBound(min_value, bin_width); for (int i = 0; i < input_flat.size(); ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 01:09:50 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/cc/framework/gradient_checker.cc
std::vector<Tensor> dy_datas(y_num); for (int i = 0; i < y_num; i++) { dy_datas[i] = Tensor(ys[i].type(), y_shapes[i]); auto dy_data_flat = dy_datas[i].flat<Y_T>(); dy_data_flat.setZero(); } // Create the feed list. ClientSession::FeedType feed_list; for (int i = 0; i < x_num; i++) { feed_list.insert({xs[i], x_datas[i]}); } for (int i = 0; i < y_num; i++) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:57:22 UTC 2024 - 18.2K bytes - Viewed (0) -
src/encoding/json/decode.go
break } if d.opcode != scanArrayValue { panic(phasePanicMsg) } } if i < v.Len() { if v.Kind() == reflect.Array { for ; i < v.Len(); i++ { v.Index(i).SetZero() // zero remainder of array } } else { v.SetLen(i) // truncate the slice } } if i == 0 && v.Kind() == reflect.Slice { v.Set(reflect.MakeSlice(v.Type(), 0, 0)) } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 35.3K bytes - Viewed (0) -
src/database/sql/convert.go
// // This also allows scanning into user defined types such as "type Int int64". // For symmetry, also check for string destination types. switch dv.Kind() { case reflect.Pointer: if src == nil { dv.SetZero() return nil } dv.Set(reflect.New(dv.Type().Elem())) return convertAssignRows(dv.Interface(), src, rows) case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: if src == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 16.2K bytes - Viewed (0) -
src/reflect/value.go
w[28] != 0 || w[29] != 0 || w[30] != 0 || w[31] != 0 { return false } w = w[n:] } return true } // SetZero sets v to be the zero value of v's type. // It panics if [Value.CanSet] returns false. func (v Value) SetZero() { v.mustBeAssignable() switch v.kind() { case Bool: *(*bool)(v.ptr) = false case Int: *(*int)(v.ptr) = 0 case Int8:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:17:41 UTC 2024 - 119.9K bytes - Viewed (0) -
pkg/kubelet/nodestatus/setters.go
// per image stored in the node status. MaxNamesPerImageInNodeStatus = 5 ) // Setter modifies the node in-place, and returns an error if the modification failed. // Setters may partially mutate the node before returning an error. type Setter func(ctx context.Context, node *v1.Node) error // NodeAddress returns a Setter that updates address-related information on the node.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 12:12:04 UTC 2024 - 30.5K bytes - Viewed (0) -
testing/architecture-test/src/test/java/org/gradle/architecture/test/KotlinCompatibilityTest.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 21:54:37 UTC 2024 - 63K bytes - Viewed (0) -
src/reflect/all_test.go
if !Zero(TypeOf(tt.x)).IsZero() { t.Errorf("%d: IsZero(Zero(TypeOf((%s)(%+v)))) is false", i, x.Kind(), tt.x) } p := New(x.Type()).Elem() p.Set(x) p.SetZero() if !p.IsZero() { t.Errorf("%d: IsZero((%s)(%+v)) is true after SetZero", i, p.Kind(), tt.x) } } func() { defer func() { if r := recover(); r == nil { t.Error("should panic for invalid value") } }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/annotations/impl/DefaultTypeAnnotationMetadataStore.java
return; } String propertyName = accessorType.propertyNameFor(method); if (accessorType == PropertyAccessorType.SETTER) { validateNotAnnotated(MethodKind.SETTER, method, annotations.keySet(), validationContext); validateSetterForMutableType(method, accessorType, validationContext, propertyName); return; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 21:54:36 UTC 2024 - 37.6K bytes - Viewed (0)