Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 191 for Scalar (0.11 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/defaulting/algorithm_test.go

    		name     string
    		json     string
    		schema   *structuralschema.Structural
    		expected string
    	}{
    		{"empty", "null", nil, "null"},
    		{"scalar", "4", &structuralschema.Structural{
    			Generic: structuralschema.Generic{
    				Default: structuralschema.JSON{Object: "foo"},
    			},
    		}, "4"},
    		{"scalar array", "[1,2]", &structuralschema.Structural{
    			Items: &structuralschema.Structural{
    				Generic: structuralschema.Generic{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        Arg<TF_NumberTensor, [{Must be a scalar.}]>:$beta1_power,
        Arg<TF_NumberTensor, [{Must be a scalar.}]>:$beta2_power,
        Arg<TF_NumberTensor, [{Scaling factor. Must be a scalar.}]>:$lr,
        Arg<TF_NumberTensor, [{Momentum factor. Must be a scalar.}]>:$beta1,
        Arg<TF_NumberTensor, [{Momentum factor. Must be a scalar.}]>:$beta2,
        Arg<TF_NumberTensor, [{Ridge term. Must be a scalar.}]>:$epsilon,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  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. tensorflow/compiler/aot/aot_only_var_handle_op.cc

        .Attr("dtype: type")
        .Attr("shape: shape")
        .Output("resource: resource")
        .SetIsStateful()
        .SetShapeFn([](shape_inference::InferenceContext* c) {
          c->set_output(0, c->Scalar());
          DataType t;
          TF_RETURN_IF_ERROR(c->GetAttr("dtype", &t));
          PartialTensorShape p;
          TF_RETURN_IF_ERROR(c->GetAttr("shape", &p));
          shape_inference::ShapeHandle s;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 09:57:04 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.h

    #include "mlir/IR/PatternMatch.h"  // from @llvm-project
    #include "mlir/Support/LLVM.h"  // from @llvm-project
    
    namespace mlir {
    namespace TF {
    
    // Returns int, float or complex DenseElementsAttr with scalar shape with the
    // given element type and the integer value.
    template <typename T>
    DenseElementsAttr GetScalarOfType(Type ty, T raw_value) {
      RankedTensorType scalar_ty = RankedTensorType::get({}, ty);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top