Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,054 for ShapeN (0.18 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      }
    
      std::vector<std::optional<std::vector<int>>> shapes;
      TF_RETURN_IF_ERROR(::tensorflow::ParseNodeShapes(input_shapes, shapes));
    
      for (const auto& shape : shapes) {
        if (!shape) {
          return absl::AbortedError("Missing input argument shapes");
        }
        parsed_shapes.push_back(SmallVector<int64_t>(shape->begin(), shape->end()));
      }
      return parsed_shapes;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    // 'shape' is the original shape with padding to match result shape.
    int64_t GetElementIndex(const std::vector<int64_t>& shape,
                            const std::vector<int64_t>& current_index) {
      int64_t ind = 0;
      int64_t mul = 1;
      for (int i = shape.size() - 1; i >= 0; --i) {
        ind += (current_index[i] % shape[i]) * mul;
        mul *= shape[i];
      }
      return ind;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/tensor_spec.cc

    TensorSpec::TensorSpec()
        : shape_(std::initializer_list<int64_t>()), dtype_(DT_FLOAT) {}
    
    TensorSpec::TensorSpec(PartialTensorShape shape, DataType dtype)
        : shape_(std::move(shape)), dtype_(dtype) {}
    
    TensorSpec::TensorSpec(const TensorSpecProto& proto)
        : shape_(proto.shape()), dtype_(proto.dtype()) {}
    
    const PartialTensorShape& TensorSpec::shape() const { return shape_; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.h

    bool CanBeRefined(Type type);
    
    // Returns a new arg type based on the shape and element type. If there are
    // dynamic bounds attribute to the arg, update the bounds based on the shape
    // as well.
    Type GetNewArgType(Type old_arg_type, ArrayRef<int64_t> shape,
                       Type element_type, mlir::MLIRContext* context);
    
    // Refines all the shapes in a module, skipping the inference for all ops
    // whose type is in ops_to_skip.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

                                      PatternRewriter &rewriter) {
      // Fail for non-static shapes
      if (!pad_op.getOperand().getType().hasStaticShape() ||
          !pad_op.getResult().getType().hasStaticShape() ||
          !pad_op.getPaddingValue().getType().hasStaticShape()) {
        return rewriter.notifyMatchFailure(pad_op, "dynamic shapes not supported");
      }
    
      // Check if the operand is also a Pad op
      auto parent_pad =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_host_send_device_context.h

          se::Stream* stream, se::DeviceMemoryBase* device_memory_base,
          const xla::Shape& shape,
          tsl::AsyncValueRef<std::unique_ptr<se::Event>>& done_event)
          : stream_(stream),
            device_memory_base_(device_memory_base),
            shape_(shape),
            done_event_(done_event) {}
    
      // Copies 'cpu_tensor' to `device_memory_base_` with `shape_`.
      // `device_tensor` is unused.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/error-message-with-source-info.pbtxt

    node: {
      name: "x"
      op: "Placeholder"
      attr: {
        key: "shape"
        value: {
          shape: {
            dim: {
              size: -1
            }
          }
        }
      }
      attr: {
        key: "dtype"
        value: {
          type: DT_INT32
        }
      }
    }
    node: {
      name: "y"
      op: "Placeholder"
      attr: {
        key: "shape"
        value: {
          shape: {
            dim: {
              size: -1
            }
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 10 19:00:09 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

      // Fuse select(broadcast_to(input, shape), x, y) -> selectV2(input, x, y)
      // Also, fuse selectv2(broadcast_to(input, shape), x, y) -> selectV2(input, x, y)
      // It is safe to perform this transform here because-
      // the shapes of `pre_broadcast` and `dim` must be broadcast
      // compatible for the `broadcast_to` op to be valid.
      // And considering, `shape(post_broadcast)` == `shape(%input1)`,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  9. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    		resources []config.ResourceSpec
    		shapes    []config.UtilizationShapePoint
    		wantErrs  field.ErrorList
    	}{
    		{
    			name:   "no shapes",
    			shapes: nil,
    			wantErrs: field.ErrorList{
    				{
    					Type:  field.ErrorTypeRequired,
    					Field: "scoringStrategy.shape",
    				},
    			},
    		},
    		{
    			name:   "weight greater than max",
    			shapes: defaultShape,
    			resources: []config.ResourceSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/add.pbtxt

    # RUN: tf-mlir-translate -graphdef-to-mlir -tf-enable-shape-inference-on-import=false %s -tf-input-arrays=input0,input1 -tf-input-shapes=10:10 -tf-output-arrays=Add -o - | FileCheck --check-prefix=NONE %s
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 17 08:38:39 UTC 2020
    - 3.4K bytes
    - Viewed (0)
Back to top