Interface TensorProtoOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    TensorProto, TensorProto.Builder

    public interface TensorProtoOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • getDtypeValue

        int getDtypeValue()
        .org.platanios.tensorflow.proto.DataType dtype = 1;
        Returns:
        The enum numeric value on the wire for dtype.
      • getDtype

        DataType getDtype()
        .org.platanios.tensorflow.proto.DataType dtype = 1;
        Returns:
        The dtype.
      • hasTensorShape

        boolean hasTensorShape()
         Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
         
        .org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 2;
        Returns:
        Whether the tensorShape field is set.
      • getTensorShape

        TensorShapeProto getTensorShape()
         Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
         
        .org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 2;
        Returns:
        The tensorShape.
      • getTensorShapeOrBuilder

        TensorShapeProtoOrBuilder getTensorShapeOrBuilder()
         Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
         
        .org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 2;
      • getVersionNumber

        int getVersionNumber()
         Version number.
         In version 0, if the "repeated xxx" representations contain only one
         element, that element is repeated to fill the shape.  This makes it easy
         to represent a constant Tensor with a single value.
         
        int32 version_number = 3;
        Returns:
        The versionNumber.
      • getTensorContent

        com.google.protobuf.ByteString getTensorContent()
         Serialized raw tensor content from either Tensor::AsProtoTensorContent or
         memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation
         can be used for all tensor types. The purpose of this representation is to
         reduce serialization overhead during RPC call by avoiding serialization of
         many repeated small items.
         
        bytes tensor_content = 4;
        Returns:
        The tensorContent.
      • getHalfValList

        java.util.List<java.lang.Integer> getHalfValList()
         DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
         have some pointless zero padding for each value here.
         
        repeated int32 half_val = 13 [packed = true];
        Returns:
        A list containing the halfVal.
      • getHalfValCount

        int getHalfValCount()
         DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
         have some pointless zero padding for each value here.
         
        repeated int32 half_val = 13 [packed = true];
        Returns:
        The count of halfVal.
      • getHalfVal

        int getHalfVal​(int index)
         DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll
         have some pointless zero padding for each value here.
         
        repeated int32 half_val = 13 [packed = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The halfVal at the given index.
      • getFloatValList

        java.util.List<java.lang.Float> getFloatValList()
         DT_FLOAT.
         
        repeated float float_val = 5 [packed = true];
        Returns:
        A list containing the floatVal.
      • getFloatValCount

        int getFloatValCount()
         DT_FLOAT.
         
        repeated float float_val = 5 [packed = true];
        Returns:
        The count of floatVal.
      • getFloatVal

        float getFloatVal​(int index)
         DT_FLOAT.
         
        repeated float float_val = 5 [packed = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The floatVal at the given index.
      • getDoubleValList

        java.util.List<java.lang.Double> getDoubleValList()
         DT_DOUBLE.
         
        repeated double double_val = 6 [packed = true];
        Returns:
        A list containing the doubleVal.
      • getDoubleValCount

        int getDoubleValCount()
         DT_DOUBLE.
         
        repeated double double_val = 6 [packed = true];
        Returns:
        The count of doubleVal.
      • getDoubleVal

        double getDoubleVal​(int index)
         DT_DOUBLE.
         
        repeated double double_val = 6 [packed = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The doubleVal at the given index.
      • getIntValList

        java.util.List<java.lang.Integer> getIntValList()
         DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
         
        repeated int32 int_val = 7 [packed = true];
        Returns:
        A list containing the intVal.
      • getIntValCount

        int getIntValCount()
         DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
         
        repeated int32 int_val = 7 [packed = true];
        Returns:
        The count of intVal.
      • getIntVal

        int getIntVal​(int index)
         DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
         
        repeated int32 int_val = 7 [packed = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The intVal at the given index.
      • getStringValList

        java.util.List<com.google.protobuf.ByteString> getStringValList()
         DT_STRING
         
        repeated bytes string_val = 8;
        Returns:
        A list containing the stringVal.
      • getStringValCount

        int getStringValCount()
         DT_STRING
         
        repeated bytes string_val = 8;
        Returns:
        The count of stringVal.
      • getStringVal

        com.google.protobuf.ByteString getStringVal​(int index)
         DT_STRING
         
        repeated bytes string_val = 8;
        Parameters:
        index - The index of the element to return.
        Returns:
        The stringVal at the given index.
      • getScomplexValList

        java.util.List<java.lang.Float> getScomplexValList()
         DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
         and imaginary parts of i-th single precision complex.
         
        repeated float scomplex_val = 9 [packed = true];
        Returns:
        A list containing the scomplexVal.
      • getScomplexValCount

        int getScomplexValCount()
         DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
         and imaginary parts of i-th single precision complex.
         
        repeated float scomplex_val = 9 [packed = true];
        Returns:
        The count of scomplexVal.
      • getScomplexVal

        float getScomplexVal​(int index)
         DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real
         and imaginary parts of i-th single precision complex.
         
        repeated float scomplex_val = 9 [packed = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The scomplexVal at the given index.
      • getInt64ValList

        java.util.List<java.lang.Long> getInt64ValList()
         DT_INT64
         
        repeated int64 int64_val = 10 [packed = true];
        Returns:
        A list containing the int64Val.
      • getInt64ValCount

        int getInt64ValCount()
         DT_INT64
         
        repeated int64 int64_val = 10 [packed = true];
        Returns:
        The count of int64Val.
      • getInt64Val

        long getInt64Val​(int index)
         DT_INT64
         
        repeated int64 int64_val = 10 [packed = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The int64Val at the given index.
      • getBoolValList

        java.util.List<java.lang.Boolean> getBoolValList()
         DT_BOOL
         
        repeated bool bool_val = 11 [packed = true];
        Returns:
        A list containing the boolVal.
      • getBoolValCount

        int getBoolValCount()
         DT_BOOL
         
        repeated bool bool_val = 11 [packed = true];
        Returns:
        The count of boolVal.
      • getBoolVal

        boolean getBoolVal​(int index)
         DT_BOOL
         
        repeated bool bool_val = 11 [packed = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The boolVal at the given index.
      • getDcomplexValList

        java.util.List<java.lang.Double> getDcomplexValList()
         DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
         and imaginary parts of i-th double precision complex.
         
        repeated double dcomplex_val = 12 [packed = true];
        Returns:
        A list containing the dcomplexVal.
      • getDcomplexValCount

        int getDcomplexValCount()
         DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
         and imaginary parts of i-th double precision complex.
         
        repeated double dcomplex_val = 12 [packed = true];
        Returns:
        The count of dcomplexVal.
      • getDcomplexVal

        double getDcomplexVal​(int index)
         DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real
         and imaginary parts of i-th double precision complex.
         
        repeated double dcomplex_val = 12 [packed = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The dcomplexVal at the given index.
      • getResourceHandleValList

        java.util.List<ResourceHandleProto> getResourceHandleValList()
         DT_RESOURCE
         
        repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
      • getResourceHandleVal

        ResourceHandleProto getResourceHandleVal​(int index)
         DT_RESOURCE
         
        repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
      • getResourceHandleValCount

        int getResourceHandleValCount()
         DT_RESOURCE
         
        repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
      • getResourceHandleValOrBuilderList

        java.util.List<? extends ResourceHandleProtoOrBuilder> getResourceHandleValOrBuilderList()
         DT_RESOURCE
         
        repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
      • getResourceHandleValOrBuilder

        ResourceHandleProtoOrBuilder getResourceHandleValOrBuilder​(int index)
         DT_RESOURCE
         
        repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
      • getVariantValList

        java.util.List<VariantTensorDataProto> getVariantValList()
         DT_VARIANT
         
        repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
      • getVariantVal

        VariantTensorDataProto getVariantVal​(int index)
         DT_VARIANT
         
        repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
      • getVariantValCount

        int getVariantValCount()
         DT_VARIANT
         
        repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
      • getVariantValOrBuilderList

        java.util.List<? extends VariantTensorDataProtoOrBuilder> getVariantValOrBuilderList()
         DT_VARIANT
         
        repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
      • getVariantValOrBuilder

        VariantTensorDataProtoOrBuilder getVariantValOrBuilder​(int index)
         DT_VARIANT
         
        repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
      • getUint32ValList

        java.util.List<java.lang.Integer> getUint32ValList()
         DT_UINT32
         
        repeated uint32 uint32_val = 16 [packed = true];
        Returns:
        A list containing the uint32Val.
      • getUint32ValCount

        int getUint32ValCount()
         DT_UINT32
         
        repeated uint32 uint32_val = 16 [packed = true];
        Returns:
        The count of uint32Val.
      • getUint32Val

        int getUint32Val​(int index)
         DT_UINT32
         
        repeated uint32 uint32_val = 16 [packed = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The uint32Val at the given index.
      • getUint64ValList

        java.util.List<java.lang.Long> getUint64ValList()
         DT_UINT64
         
        repeated uint64 uint64_val = 17 [packed = true];
        Returns:
        A list containing the uint64Val.
      • getUint64ValCount

        int getUint64ValCount()
         DT_UINT64
         
        repeated uint64 uint64_val = 17 [packed = true];
        Returns:
        The count of uint64Val.
      • getUint64Val

        long getUint64Val​(int index)
         DT_UINT64
         
        repeated uint64 uint64_val = 17 [packed = true];
        Parameters:
        index - The index of the element to return.
        Returns:
        The uint64Val at the given index.