BundleHeaderProto

public final class BundleHeaderProto

 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

Nested Classes

class BundleHeaderProto.Builder
 Special header that is associated with a bundle. 
enum BundleHeaderProto.Endianness
 An enum indicating the endianness of the platform that produced this
 bundle. 

Constants

int ENDIANNESS_FIELD_NUMBER
int NUM_SHARDS_FIELD_NUMBER
int VERSION_FIELD_NUMBER

Public Methods

boolean
equals(Object obj)
static BundleHeaderProto
BundleHeaderProto
final static 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.
int
final com.google.protobuf.UnknownFieldSet
VersionDef
getVersion()
 Versioning of the tensor bundle format.
VersionDefOrBuilder
getVersionOrBuilder()
 Versioning of the tensor bundle format.
boolean
hasVersion()
 Versioning of the tensor bundle format.
int
final boolean
static BundleHeaderProto.Builder
static BundleHeaderProto.Builder
BundleHeaderProto.Builder
static BundleHeaderProto
parseDelimitedFrom(InputStream input)
static BundleHeaderProto
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BundleHeaderProto
parseFrom(ByteBuffer data)
static BundleHeaderProto
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BundleHeaderProto
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BundleHeaderProto
parseFrom(com.google.protobuf.CodedInputStream input)
static BundleHeaderProto
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BundleHeaderProto
parseFrom(com.google.protobuf.ByteString data)
static BundleHeaderProto
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static BundleHeaderProto
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
parser()
BundleHeaderProto.Builder
void
writeTo(com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int ENDIANNESS_FIELD_NUMBER

Constant Value: 2

public static final int NUM_SHARDS_FIELD_NUMBER

Constant Value: 1

public static final int VERSION_FIELD_NUMBER

Constant Value: 3

Public Methods

public boolean equals (Object obj)

public static BundleHeaderProto getDefaultInstance ()

public BundleHeaderProto getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

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 getParserForType ()

public int getSerializedSize ()

public final com.google.protobuf.UnknownFieldSet getUnknownFields ()

public VersionDef getVersion ()

 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 int hashCode ()

public final boolean isInitialized ()

public static BundleHeaderProto.Builder newBuilder (BundleHeaderProto prototype)

public static BundleHeaderProto.Builder newBuilder ()

public BundleHeaderProto.Builder newBuilderForType ()

public static BundleHeaderProto parseDelimitedFrom (InputStream input)

Throws
IOException

public static BundleHeaderProto parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static BundleHeaderProto parseFrom (ByteBuffer data)

Throws
InvalidProtocolBufferException

public static BundleHeaderProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static BundleHeaderProto parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static BundleHeaderProto parseFrom (com.google.protobuf.CodedInputStream input)

Throws
IOException

public static BundleHeaderProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static BundleHeaderProto parseFrom (com.google.protobuf.ByteString data)

Throws
InvalidProtocolBufferException

public static BundleHeaderProto parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static BundleHeaderProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static parser ()

public BundleHeaderProto.Builder toBuilder ()

public void writeTo (com.google.protobuf.CodedOutputStream output)

Throws
IOException