public static final class
BundleEntryProto.Builder
Describes the metadata related to a checkpointed tensor.
tensorflow.BundleEntryProto
Public Methods
| BundleEntryProto.Builder |
addAllSlices(Iterable<? extends TensorSliceProto> values)
Iff present, this entry represents a partitioned tensor. |
| BundleEntryProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
| BundleEntryProto.Builder |
addSlices(int index, TensorSliceProto.Builder builderForValue)
Iff present, this entry represents a partitioned tensor. |
| BundleEntryProto.Builder |
addSlices(TensorSliceProto.Builder builderForValue)
Iff present, this entry represents a partitioned tensor. |
| BundleEntryProto.Builder | |
| BundleEntryProto.Builder |
addSlices(int index, TensorSliceProto value)
Iff present, this entry represents a partitioned tensor. |
| TensorSliceProto.Builder |
addSlicesBuilder(int index)
Iff present, this entry represents a partitioned tensor. |
| TensorSliceProto.Builder |
addSlicesBuilder()
Iff present, this entry represents a partitioned tensor. |
| BundleEntryProto |
build()
|
| BundleEntryProto | |
| BundleEntryProto.Builder |
clear()
|
| BundleEntryProto.Builder |
clearCrc32C()
The CRC32C checksum of the tensor bytes. |
| BundleEntryProto.Builder |
clearDtype()
The tensor dtype and shape. |
| BundleEntryProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
| BundleEntryProto.Builder |
clearOffset()
int64 offset = 4;
|
| BundleEntryProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
| BundleEntryProto.Builder |
clearShape()
.tensorflow.TensorShapeProto shape = 2;
|
| BundleEntryProto.Builder |
clearShardId()
The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size). |
| BundleEntryProto.Builder |
clearSize()
int64 size = 5;
|
| BundleEntryProto.Builder |
clearSlices()
Iff present, this entry represents a partitioned tensor. |
| BundleEntryProto.Builder |
clone()
|
| int |
getCrc32C()
The CRC32C checksum of the tensor bytes. |
| BundleEntryProto | |
| final static com.google.protobuf.Descriptors.Descriptor | |
| com.google.protobuf.Descriptors.Descriptor | |
| DataType |
getDtype()
The tensor dtype and shape. |
| int |
getDtypeValue()
The tensor dtype and shape. |
| long |
getOffset()
int64 offset = 4;
|
| TensorShapeProto |
getShape()
.tensorflow.TensorShapeProto shape = 2;
|
| TensorShapeProto.Builder |
getShapeBuilder()
.tensorflow.TensorShapeProto shape = 2;
|
| TensorShapeProtoOrBuilder |
getShapeOrBuilder()
.tensorflow.TensorShapeProto shape = 2;
|
| int |
getShardId()
The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size). |
| long |
getSize()
int64 size = 5;
|
| TensorSliceProto |
getSlices(int index)
Iff present, this entry represents a partitioned tensor. |
| TensorSliceProto.Builder |
getSlicesBuilder(int index)
Iff present, this entry represents a partitioned tensor. |
| List<TensorSliceProto.Builder> |
getSlicesBuilderList()
Iff present, this entry represents a partitioned tensor. |
| int |
getSlicesCount()
Iff present, this entry represents a partitioned tensor. |
| List<TensorSliceProto> |
getSlicesList()
Iff present, this entry represents a partitioned tensor. |
| TensorSliceProtoOrBuilder |
getSlicesOrBuilder(int index)
Iff present, this entry represents a partitioned tensor. |
| List<? extends TensorSliceProtoOrBuilder> |
getSlicesOrBuilderList()
Iff present, this entry represents a partitioned tensor. |
| boolean |
hasShape()
.tensorflow.TensorShapeProto shape = 2;
|
| final boolean | |
| BundleEntryProto.Builder |
mergeFrom(com.google.protobuf.Message other)
|
| BundleEntryProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
| BundleEntryProto.Builder | |
| final BundleEntryProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
| BundleEntryProto.Builder |
removeSlices(int index)
Iff present, this entry represents a partitioned tensor. |
| BundleEntryProto.Builder |
setCrc32C(int value)
The CRC32C checksum of the tensor bytes. |
| BundleEntryProto.Builder | |
| BundleEntryProto.Builder |
setDtypeValue(int value)
The tensor dtype and shape. |
| BundleEntryProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
| BundleEntryProto.Builder |
setOffset(long value)
int64 offset = 4;
|
| BundleEntryProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
| BundleEntryProto.Builder | |
| BundleEntryProto.Builder | |
| BundleEntryProto.Builder |
setShardId(int value)
The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size). |
| BundleEntryProto.Builder |
setSize(long value)
int64 size = 5;
|
| BundleEntryProto.Builder |
setSlices(int index, TensorSliceProto.Builder builderForValue)
Iff present, this entry represents a partitioned tensor. |
| BundleEntryProto.Builder |
setSlices(int index, TensorSliceProto value)
Iff present, this entry represents a partitioned tensor. |
| final BundleEntryProto.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
Inherited Methods
Public Methods
public BundleEntryProto.Builder addAllSlices (Iterable<? extends TensorSliceProto> values)
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;
public BundleEntryProto.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public BundleEntryProto.Builder addSlices (int index, TensorSliceProto.Builder builderForValue)
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;
public BundleEntryProto.Builder addSlices (TensorSliceProto.Builder builderForValue)
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;
public BundleEntryProto.Builder addSlices (TensorSliceProto value)
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;
public BundleEntryProto.Builder addSlices (int index, TensorSliceProto value)
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;
public TensorSliceProto.Builder addSlicesBuilder (int index)
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;
public TensorSliceProto.Builder addSlicesBuilder ()
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;
public BundleEntryProto.Builder clearCrc32C ()
The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;
public BundleEntryProto.Builder clearDtype ()
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;
public BundleEntryProto.Builder clearShardId ()
The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;
public BundleEntryProto.Builder clearSlices ()
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;
public int getCrc32C ()
The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public int getDtypeValue ()
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;
public long getOffset ()
int64 offset = 4;
public int getShardId ()
The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;
public long getSize ()
int64 size = 5;
public TensorSliceProto getSlices (int index)
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;
public TensorSliceProto.Builder getSlicesBuilder (int index)
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;
public List<TensorSliceProto.Builder> getSlicesBuilderList ()
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;
public 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;
public 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;
public TensorSliceProtoOrBuilder getSlicesOrBuilder (int index)
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;
public 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;
public boolean hasShape ()
.tensorflow.TensorShapeProto shape = 2;
public final boolean isInitialized ()
public BundleEntryProto.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
| IOException |
|---|
public BundleEntryProto.Builder mergeShape (TensorShapeProto value)
.tensorflow.TensorShapeProto shape = 2;
public final BundleEntryProto.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public BundleEntryProto.Builder removeSlices (int index)
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;
public BundleEntryProto.Builder setCrc32C (int value)
The CRC32C checksum of the tensor bytes.
fixed32 crc32c = 6;
public BundleEntryProto.Builder setDtype (DataType value)
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;
public BundleEntryProto.Builder setDtypeValue (int value)
The tensor dtype and shape.
.tensorflow.DataType dtype = 1;
public BundleEntryProto.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public BundleEntryProto.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
public BundleEntryProto.Builder setShape (TensorShapeProto value)
.tensorflow.TensorShapeProto shape = 2;
public BundleEntryProto.Builder setShape (TensorShapeProto.Builder builderForValue)
.tensorflow.TensorShapeProto shape = 2;
public BundleEntryProto.Builder setShardId (int value)
The binary content of the tensor lies in: File "shard_id": bytes [offset, offset + size).
int32 shard_id = 3;
public BundleEntryProto.Builder setSlices (int index, TensorSliceProto.Builder builderForValue)
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;
public BundleEntryProto.Builder setSlices (int index, TensorSliceProto value)
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;