Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 68 of 68 for shape_b (3.07 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      %0 = "tf.EnsureShape"(%arg0) {shape = #tf_type.shape<10x20>} : (tensor<10x20xf32>) -> tensor<10x20xf32>
      %1 = "tf.EnsureShape"(%arg0) {shape = #tf_type.shape<?x20>} : (tensor<10x20xf32>) -> tensor<10x20xf32>
      // Failing case which should not be folded.
      // CHECK: %[[NF:.*]] = "tf.EnsureShape"(%arg0) <{shape = #tf_type.shape<20x10>}>
      %2 = "tf.EnsureShape"(%arg0) {shape = #tf_type.shape<20x10>} : (tensor<10x20xf32>) -> tensor<20x10xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

    // Extracts shape from XlaArgument as TensorShape. If shape is a xla::Shape,
    // that is converted to a TensorShape.
    absl::StatusOr<TensorShape> GetTensorShapeFromXlaArgument(
        const XlaArgument& arg) {
      if (absl::holds_alternative<xla::Shape>(arg.shape)) {
        TensorShape arg_shape;
        TF_RETURN_IF_ERROR(
            XLAShapeToTensorShape(std::get<xla::Shape>(arg.shape), &arg_shape));
        return arg_shape;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/optimize.mlir

      %begin0 = arith.constant dense<0> : tensor<4xi64>
      %shape0 = arith.constant dense<[2,3,4,4]> : tensor<4xi64>
      %begin1 = arith.constant dense<1> : tensor<4xi64>
      %shape1 = arith.constant dense<[1,2,3,4]> : tensor<4xi64>
      %0 = "tfl.slice"(%arg0, %begin0, %shape0) : (tensor<2x3x4x5xf32>, tensor<4xi64>, tensor<4xi64>) -> tensor<2x3x4x4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 284.1K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

            return mlir::UnrankedTensorType::get(
                mlir::TF::ResourceType::get(builder.getContext()));
          }
        } else if (auto shape = node.attrs().Find("_output_shapes")) {
          if (shape->has_list() && shape->list().shape_size() == 1) {
            return ConvertToMlirTensorType(shape->list().shape().at(0), dtype,
                                           &builder);
          }
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

      // CHECK-NEXT: %[[SHAPE0:.*]] = shape.shape_of %arg0 : tensor<?xi1> -> tensor<1xindex>
      // CHECK-NEXT: %[[SHAPE1:.*]] = shape.shape_of %arg1 : tensor<?x?x8xi32> -> tensor<3xindex>
      // CHECK-NEXT: %[[SHAPE2:.*]] = shape.shape_of %arg2 : tensor<?x?x8xi32> -> tensor<3xindex>
      // CHECK-NEXT: %[[SHAPEEQ1:.*]] = shape.cstr_eq %[[SHAPE1]], %[[SHAPE2]] : tensor<3xindex>, tensor<3xindex>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

      return
    }
    ```
    ### `-tf-tpu-annotate-dynamic-shape-inputs`
    
    _Annotate the inputs returned by TPUCopyWithDynamicShapeOp with dynamic shape_
    
    This pass looks for the usage of the result of TPUCopyWithDynamicShapeOp
    and sets the shape of these inputs to be dynamic shaped. This will ensure
    that the generated HLO program is correctly reflecting the dynamic shape.
    ### `-tf-tpu-cleanup-cluster-attributes`
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/schema/schema_generated.h

        ::flatbuffers::FlatBufferBuilder &_fbb,
        const std::vector<int32_t> *shape = nullptr,
        tflite::TensorType type = tflite::TensorType_FLOAT32,
        bool has_rank = false) {
      auto shape__ = shape ? _fbb.CreateVector<int32_t>(*shape) : 0;
      return tflite::CreateVariantSubType(
          _fbb,
          shape__,
          type,
          has_rank);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 1M bytes
    - Viewed (0)
Back to top