BundleHeaderProto.Builder

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.
 
Protobuf type tensorflow.BundleHeaderProto

Public Methods

BundleHeaderProto.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BundleHeaderProto
BundleHeaderProto
BundleHeaderProto.Builder
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
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
mergeVersion ( VersionDef value)
 Versioning of the tensor bundle format.
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
setVersion ( VersionDef value)
 Versioning of the tensor bundle format.
BundleHeaderProto.Builder
setVersion ( VersionDef.Builder builderForValue)
 Versioning of the tensor bundle format.

Inherited Methods

Public Methods

public BundleHeaderProto.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public BundleHeaderProto build ()

public BundleHeaderProto buildPartial ()

public BundleHeaderProto.Builder clearEndianness ()

.tensorflow.BundleHeaderProto.Endianness endianness = 2;

public BundleHeaderProto.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public BundleHeaderProto.Builder clearNumShards ()

 Number of data files in the bundle.
 
int32 num_shards = 1;

public BundleHeaderProto.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public BundleHeaderProto.Builder clearVersion ()

 Versioning of the tensor bundle format.
 
.tensorflow.VersionDef version = 3;

public BundleHeaderProto getDefaultInstanceForType ()

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 BundleHeaderProto.Builder mergeFrom (com.google.protobuf.Message other)

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;