Interface BundleEntryProtoOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
- All Known Implementing Classes:
BundleEntryProto, BundleEntryProto.Builder
-
Method Summary
Modifier and TypeMethodDescriptionintThe CRC32C checksum of the tensor bytes.getDtype()The tensor dtype and shape.intThe tensor dtype and shape.longint64 offset = 4;getShape().tensorflow.TensorShapeProto shape = 2;.tensorflow.TensorShapeProto shape = 2;intThe binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).longgetSize()int64 size = 5;getSlices(int index) Iff present, this entry represents a partitioned tensor.intIff present, this entry represents a partitioned tensor.Iff present, this entry represents a partitioned tensor.getSlicesOrBuilder(int index) Iff present, this entry represents a partitioned tensor.List<? extends TensorSliceProtoOrBuilder> Iff present, this entry represents a partitioned tensor.booleanhasShape().tensorflow.TensorShapeProto shape = 2;Methods inherited from interface MessageLiteOrBuilder
isInitialized
-
Method Details
-
getDtypeValue
int getDtypeValue()The tensor dtype and shape.
.tensorflow.DataType dtype = 1;- Returns:
- The enum numeric value on the wire for dtype.
-
getDtype
-
hasShape
boolean hasShape().tensorflow.TensorShapeProto shape = 2;- Returns:
- Whether the shape field is set.
-
getShape
-
getShapeOrBuilder
TensorShapeProtoOrBuilder getShapeOrBuilder().tensorflow.TensorShapeProto shape = 2; -
getShardId
int getShardId()The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;- Returns:
- The shardId.
-
getOffset
long getOffset()int64 offset = 4;- Returns:
- The offset.
-
getSize
long getSize()int64 size = 5;- Returns:
- The size.
-
getCrc32C
int getCrc32C()The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;- Returns:
- The crc32c.
-
getSlicesList
List<TensorSliceProto> getSlicesList()Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
getSlices
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
getSlicesCount
int getSlicesCount()Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
getSlicesOrBuilderList
List<? extends TensorSliceProtoOrBuilder> getSlicesOrBuilderList()Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7; -
getSlicesOrBuilder
Iff present, this entry represents a partitioned tensor. The previous fields are interpreted as follows: "dtype", "shape": describe the full tensor. "shard_id", "offset", "size", "crc32c": all IGNORED. These information for each slice can be looked up in their own BundleEntryProto, keyed by each "slice_name".repeated .tensorflow.TensorSliceProto slices = 7;
-