- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 440 for Scalar (0.11 sec)
-
operator/pkg/tpath/tree.go
return false, fmt.Errorf("don't know about vtype %T", vParentNode) } case map[string]any: key := nc.Parent.KeyToChild.(string) // Update is treated differently depending on whether the value is a scalar or map type. If scalar, // insert a new element into the terminal node, otherwise replace the terminal node with the new subtree. if ncNode, ok := nc.Node.(*any); ok && !mapFromString { switch vNcNode := (*ncNode).(type) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 17.5K bytes - Viewed (0) -
tensorflow/c/eager/unified_api_testutil.h
TestTensorHandleWithDims<T, datatype>(eager_ctx, data, dims, num_dims); *tensor = unwrap(TF_CreateAbstractTensorFromEagerTensor(input_eager, status.get())); return absl::OkStatus(); } // Return a scalar tensor handle with given value. template <class T, TF_DataType datatype> Status TestScalarTensorHandle(AbstractContext* ctx, const T value, AbstractTensorHandle** tensor) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 13:57:45 UTC 2024 - 4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
if (!IsOfRankOrUnranked(op.getDepth(), 0)) { return op.emitOpError() << "requires depth to be a scalar"; } if (!IsOfRankOrUnranked(op.getOnValue(), 0)) { return op.emitOpError() << "requires on_value to be a scalar"; } if (!IsOfRankOrUnranked(op.getOffValue(), 0)) { return op.emitOpError() << "requires off_value to be a scalar"; } DenseIntElementsAttr depth_attr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ScalarCollectionModelView.java
// collection is null to initialize it to an empty list, but this is how the specs define reaw-write // collections of scalar types. delegate = initializeEmptyCollection(); } } return delegate == null ? null : toMutationSafe(delegate); } private Collection<E> initializeEmptyCollection() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3.9K bytes - Viewed (0) -
operator/pkg/util/reflect.go
// value for the type. func IsValueNilOrDefault(value any) bool { if IsValueNil(value) { return true } if !IsValueScalar(reflect.ValueOf(value)) { // Default value is nil for non-scalar types. return false } return value == reflect.New(reflect.TypeOf(value)).Elem().Interface() } // IsValuePtr reports whether v is a ptr type. func IsValuePtr(v reflect.Value) bool {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 8.6K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc
const TF_TensorSpec* tensor_spec_a = TF_SignatureDefParamTensorSpec(param_a); const TF_Shape* shape_a = TF_TensorSpecShape(tensor_spec_a); // Input "a" is a scalar, float32 tensor EXPECT_EQ("a", std::string(TF_SignatureDefParamName(param_a))); EXPECT_EQ(TF_FLOAT, TF_TensorSpecDataType(tensor_spec_a)); EXPECT_EQ(0, TF_ShapeDims(shape_a));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 08:08:45 UTC 2024 - 21.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/ratcheting_test.go
var objectObjectSchema *spec.Schema = &spec.Schema{ SchemaProps: spec.SchemaProps{ Type: spec.StringOrArray{"object"}, Properties: map[string]spec.Schema{ "nested": *objectSchema, }, }, } // Shows scalar fields of objects can be ratcheted func TestObjectScalarFieldsRatcheting(t *testing.T) { validator := validation.NewRatchetingSchemaValidator(objectSchema, nil, "", strfmt.Default)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 24 18:20:09 UTC 2023 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/generated.proto
// // 1) `atomic`: the list is treated as a single entity, like a scalar. // Atomic lists will be entirely replaced when updated. This extension // may be used on any type of list (struct, scalar, ...). // 2) `set`: // Sets are lists that must not have multiple items with the same value. Each // value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 28 15:34:11 UTC 2024 - 39.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/common/maplist.go
v, ok := obj[ks.key] if !ok { return nil, false } switch v.(type) { case bool, float64, int64, string: return v, true default: return nil, false // non-scalar } } // multiKeyStrategy computes a composite key of all key values. type multiKeyStrategy struct { sts Schema } // CompositeKeyFor returns a composite key computed from the values of all // keys.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 07 02:56:51 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
// Val tensor must be a scalar or of a shape [1, ... , 1, elements_depth]. const int elements_rank = elements_shape.size(); for (int i = 0; i < elements_rank - 1; ++i) { if (elements_shape[i] != 1) { return false; } } auto elements_depth = elements_shape.empty() ? 1 : elements_shape.back(); // If elements depth equals 1 (i.e., scalar or tensor with 1 element), then we
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0)