Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TensorSpecProto (0.18 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.h

    // Converts an MLIR shaped type to a TensorFlow shape attribute.
    mlir::TF::ShapeAttr ConvertTypeToTensorShapeAttr(const mlir::Type& type);
    
    // Converts an MLIR shaped type to a Tensorflow tensor spec proto.
    absl::StatusOr<TensorSpecProto> ConvertTypeToTensorSpecProto(
        const mlir::Type& type);
    
    // Converts a TensorFlow shape attribute to an MLIR shape attribute.
    absl::StatusOr<mlir::Attribute> ConvertTensorShapeProto(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc

      // Empty TensorShape indicates a scalar.
      return mlir::TF::ShapeAttr::get(type.getContext(), ArrayRef<int64_t>());
    }
    
    absl::StatusOr<TensorSpecProto> ConvertTypeToTensorSpecProto(
        const mlir::Type& type) {
      DataType dtype;
      TF_RETURN_IF_ERROR(ConvertToDataType(type, &dtype));
      TensorSpecProto tensor_spec;
      tensor_spec.set_dtype(dtype);
      *tensor_spec.mutable_shape() = ConvertTypeToTensorShape(type).AsProto();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top