Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 440 for Scalar (0.12 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/AbstractScalarValueSnapshot.java

     */
    
    package org.gradle.internal.snapshot.impl;
    
    import org.gradle.internal.snapshot.ValueSnapshot;
    import org.gradle.internal.snapshot.ValueSnapshotter;
    
    /**
     * A snapshot of an immutable scalar value. Should only be used for immutable JVM provided or core Gradle types.
     *
     * @param <T> the type of the value
     */
    abstract class AbstractScalarValueSnapshot<T> implements ValueSnapshot {
        private final T value;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:36 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

    //
    // Computation of the reduction axis for the Sum op depends on whether the
    // input is a scalar or not. Restrict pattern to ranked inputs so that input to
    // the Sum op is also ranked.
    
    // TODO(hinsu): Support scalar inputs by introducing reshape to 1D.
    def NonScalarType : Type<Neg<HasAnyRankOfPred<[0]>>, "Non scalar type">;
    
    def LowerSoftmaxCrossEntropyWithLogitsOp : Pattern<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/types_test.go

    				AllowedPodNumber: 80,
    				ScalarResources:  map[v1.ResourceName]int64{"scalar.test/scalar1": 1, "hugepages-test": 2},
    			},
    			expected: &Resource{
    				MilliCPU:         4,
    				Memory:           2000,
    				EphemeralStorage: 5000,
    				AllowedPodNumber: 80,
    				ScalarResources:  map[v1.ResourceName]int64{"scalar.test/scalar1": 1, "hugepages-test": 2},
    			},
    		},
    	}
    
    	for i, test := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_saver_op.cc

          const Tensor& max_tensor = context->input(3 * idx + 1);
          const Tensor& histogram_tensor = context->input(3 * idx + 2);
    
          const float min_value = min_tensor.scalar<float>()();
          const float max_value = max_tensor.scalar<float>()();
          auto histogram_flat = histogram_tensor.flat<int64_t>();
          absl::Span<const int64_t> histogram_data =
              absl::MakeSpan(histogram_flat.data(), histogram_flat.size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 01:31:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc

        ConvertToTensorShapeProto(tensor_type.getShape(), &tensor_shape_proto);
        return PartialTensorShape(tensor_shape_proto);
      }
    
      // If type is not a RankedTensor or UnrankedTensor, it must be a scalar.
      // Empty TensorShape indicates a scalar.
      return TensorShape();
    }
    
    mlir::TF::ShapeAttr ConvertTypeToTensorShapeAttr(const mlir::Type& type) {
      if (mlir::isa<mlir::UnrankedTensorType>(type)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/types_jsonschema.go

    	//
    	// 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: Mon Nov 27 20:06:21 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema.go

    	//
    	// 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: Mon Nov 27 20:06:21 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td

    // Creates an 1D array const with float values.
    class Create1DConst<string values> : NativeCodeCall<
      "Create1DConstValue<float>($_builder, $_loc, "# values #")">;
    
    // Creates a scalar const with float value.
    class CreateScalarConst<string value> : NativeCodeCall<
      "CreateScalarConstValue<float>($_builder, $_loc, "# value #")">;
    
    // Creates an 1D array const with integer values.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 04:55:44 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. test/fixedbugs/issue8606b.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This is an optimization check. We want to make sure that we compare
    // string lengths, and other scalar fields, before checking string
    // contents.  There's no way to verify this in the language, and
    // codegen tests in test/codegen can't really detect ordering
    // optimizations like this. Instead, we generate invalid strings with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. tests/test_compat.py

    
    @needs_pydanticv1
    def test_union_scalar_list():
        # For coverage
        # TODO: there might not be a current valid code path that uses this, it would
        # potentially enable query parameters defined as both a scalar and a list
        # but that would require more refactors, also not sure it's really useful
        from fastapi._compat import is_pv1_scalar_field
    
        field_info = FieldInfo()
        field = ModelField(
            name="foo",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top