Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 480 for ShapeN (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/jit/test_util.cc

        TF_RET_CHECK(sit != shape_info.end())
            << "Missing shape information for node " << node->name();
        std::vector<PartialTensorShape> shapes;
        for (const auto& output : sit->second) shapes.push_back(output.shape);
    
        auto it = expected_shapes.find(node->name());
        if (it != expected_shapes.end()) {
          if (!PartialTensorShapeUtils::AreIdentical(shapes, it->second)) {
            return errors::InvalidArgument(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/shape_inference.h

    namespace tensorflow {
    
    struct InferredShape {
      // Shape of the argument tensor.
      PartialTensorShape shape;
    
      // If the argument is a resource variable, the type and shape of the
      // variable's value.
      DataType handle_type = DT_INVALID;
      PartialTensorShape handle_shape;
    };
    typedef std::unordered_map<string, std::vector<InferredShape>> GraphShapeInfo;
    
    // Infer shapes for all Tensors in a graph, and save them in a map.  The vector
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      // Check all elements besides at concat_dim match across all shape tensors.
      SmallVector<int32_t, 4> shape0;
      shape0.reserve(num_dims);
      for (int32_t dim : shapes.front().getValues<int32_t>()) shape0.push_back(dim);
    
      for (DenseIntElementsAttr shape : llvm::drop_begin(shapes, 1)) {
        for (const auto& dims_and_idx : llvm::enumerate(llvm::zip(shape0, shape))) {
          if (dims_and_idx.index() == concat_dim) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.h

    // Converts a shape from MLIR to a TensorFlow tensor shape proto.
    void ConvertToTensorShapeProto(llvm::ArrayRef<int64_t> shape,
                                   TensorShapeProto* output_shape);
    
    // Converts an MLIR type to a TensorFlow tensor shape.
    PartialTensorShape ConvertTypeToTensorShape(const mlir::Type& type);
    
    // Converts an MLIR shaped type to a TensorFlow shape attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_device.h

    namespace tensorflow {
    
    class XlaDevice : public LocalDevice {
     public:
      // Given a tensor, sets `xla::Shape*` the shape of tensor's representation
      // on device, fully padded. On error, the contents of `xla::Shape*`
      // are undefined.
      typedef std::function<Status(const Tensor&, xla::Shape*)> PaddedShapeFn;
    
      // Wrapper class to store metadata about the XlaDevice, where it can be
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top