public static final class
BundleHeaderProto.Builder
Special header that is associated with a bundle. TODO(zongheng,zhifengc): maybe in the future, we can add information about which binary produced this checkpoint, timestamp, etc. Sometime, these can be valuable debugging information. And if needed, these can be used as defensive information ensuring reader (binary version) of the checkpoint and the writer (binary version) must match within certain range, etc.
tensorflow.BundleHeaderProto
Public Methods
BundleHeaderProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
BundleHeaderProto |
build()
|
BundleHeaderProto | |
BundleHeaderProto.Builder |
clear()
|
BundleHeaderProto.Builder |
clearEndianness()
.tensorflow.BundleHeaderProto.Endianness endianness = 2;
|
BundleHeaderProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
BundleHeaderProto.Builder |
clearNumShards()
Number of data files in the bundle. |
BundleHeaderProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
BundleHeaderProto.Builder |
clearVersion()
Versioning of the tensor bundle format. |
BundleHeaderProto.Builder |
clone()
|
BundleHeaderProto | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
BundleHeaderProto.Endianness |
getEndianness()
.tensorflow.BundleHeaderProto.Endianness endianness = 2;
|
int |
getEndiannessValue()
.tensorflow.BundleHeaderProto.Endianness endianness = 2;
|
int |
getNumShards()
Number of data files in the bundle. |
VersionDef |
getVersion()
Versioning of the tensor bundle format. |
VersionDef.Builder |
getVersionBuilder()
Versioning of the tensor bundle format. |
VersionDefOrBuilder |
getVersionOrBuilder()
Versioning of the tensor bundle format. |
boolean |
hasVersion()
Versioning of the tensor bundle format. |
final boolean | |
BundleHeaderProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
BundleHeaderProto.Builder |
mergeFrom(com.google.protobuf.Message other)
|
final BundleHeaderProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
BundleHeaderProto.Builder | |
BundleHeaderProto.Builder |
setEndianness(BundleHeaderProto.Endianness value)
.tensorflow.BundleHeaderProto.Endianness endianness = 2;
|
BundleHeaderProto.Builder |
setEndiannessValue(int value)
.tensorflow.BundleHeaderProto.Endianness endianness = 2;
|
BundleHeaderProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
BundleHeaderProto.Builder |
setNumShards(int value)
Number of data files in the bundle. |
BundleHeaderProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
final BundleHeaderProto.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
BundleHeaderProto.Builder | |
BundleHeaderProto.Builder |
Inherited Methods
Public Methods
public BundleHeaderProto.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public BundleHeaderProto.Builder clearEndianness ()
.tensorflow.BundleHeaderProto.Endianness endianness = 2;
public BundleHeaderProto.Builder clearNumShards ()
Number of data files in the bundle.
int32 num_shards = 1;
public BundleHeaderProto.Builder clearVersion ()
Versioning of the tensor bundle format.
.tensorflow.VersionDef version = 3;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public BundleHeaderProto.Endianness getEndianness ()
.tensorflow.BundleHeaderProto.Endianness endianness = 2;
public int getEndiannessValue ()
.tensorflow.BundleHeaderProto.Endianness endianness = 2;
public int getNumShards ()
Number of data files in the bundle.
int32 num_shards = 1;
public VersionDef getVersion ()
Versioning of the tensor bundle format.
.tensorflow.VersionDef version = 3;
public VersionDef.Builder getVersionBuilder ()
Versioning of the tensor bundle format.
.tensorflow.VersionDef version = 3;
public VersionDefOrBuilder getVersionOrBuilder ()
Versioning of the tensor bundle format.
.tensorflow.VersionDef version = 3;
public boolean hasVersion ()
Versioning of the tensor bundle format.
.tensorflow.VersionDef version = 3;
public final boolean isInitialized ()
public BundleHeaderProto.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public final BundleHeaderProto.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public BundleHeaderProto.Builder mergeVersion (VersionDef value)
Versioning of the tensor bundle format.
.tensorflow.VersionDef version = 3;
public BundleHeaderProto.Builder setEndianness (BundleHeaderProto.Endianness value)
.tensorflow.BundleHeaderProto.Endianness endianness = 2;
public BundleHeaderProto.Builder setEndiannessValue (int value)
.tensorflow.BundleHeaderProto.Endianness endianness = 2;
public BundleHeaderProto.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public BundleHeaderProto.Builder setNumShards (int value)
Number of data files in the bundle.
int32 num_shards = 1;
public BundleHeaderProto.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
public final BundleHeaderProto.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public BundleHeaderProto.Builder setVersion (VersionDef value)
Versioning of the tensor bundle format.
.tensorflow.VersionDef version = 3;
public BundleHeaderProto.Builder setVersion (VersionDef.Builder builderForValue)
Versioning of the tensor bundle format.
.tensorflow.VersionDef version = 3;