Interface Dataset.CompressedComponentMetadataOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
- All Known Implementing Classes:
Dataset.CompressedComponentMetadata, Dataset.CompressedComponentMetadata.Builder
- Enclosing class:
Dataset
-
Method Summary
Modifier and TypeMethodDescriptiongetDtype()The dtype of the component tensor.intThe dtype of the component tensor.The shape of the component tensor.The shape of the component tensor.longgetUncompressedBytes(int index) The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.intThe amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.booleanThe shape of the component tensor.Methods inherited from interface MessageLiteOrBuilder
isInitialized
-
Method Details
-
getDtypeValue
int getDtypeValue()The dtype of the component tensor.
.tensorflow.DataType dtype = 1;- Returns:
- The enum numeric value on the wire for dtype.
-
getDtype
DataType getDtype()The dtype of the component tensor.
.tensorflow.DataType dtype = 1;- Returns:
- The dtype.
-
hasTensorShape
boolean hasTensorShape()The shape of the component tensor.
.tensorflow.TensorShapeProto tensor_shape = 2;- Returns:
- Whether the tensorShape field is set.
-
getTensorShape
TensorShapeProto getTensorShape()The shape of the component tensor.
.tensorflow.TensorShapeProto tensor_shape = 2;- Returns:
- The tensorShape.
-
getTensorShapeOrBuilder
TensorShapeProtoOrBuilder getTensorShapeOrBuilder()The shape of the component tensor.
.tensorflow.TensorShapeProto tensor_shape = 2; -
getUncompressedBytesList
The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.
repeated uint64 uncompressed_bytes = 4;- Returns:
- A list containing the uncompressedBytes.
-
getUncompressedBytesCount
int getUncompressedBytesCount()The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.
repeated uint64 uncompressed_bytes = 4;- Returns:
- The count of uncompressedBytes.
-
getUncompressedBytes
long getUncompressedBytes(int index) The amount of uncompressed tensor data. - For string tensors, there is an element for each string indicating the size of the string. - For all other tensors, there is a single element indicating the size of the tensor.
repeated uint64 uncompressed_bytes = 4;- Parameters:
index- The index of the element to return.- Returns:
- The uncompressedBytes at the given index.
-