public final class SaverDef extends com.google.protobuf.GeneratedMessageV3 implements SaverDefOrBuilder
Protocol buffer representing the configuration of a Saver.Protobuf type
tensorflow.SaverDef| Modifier and Type | Class and Description |
|---|---|
static class |
SaverDef.Builder
Protocol buffer representing the configuration of a Saver.
|
static class |
SaverDef.CheckpointFormatVersion
A version number that identifies a different on-disk checkpoint format.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
FILENAME_TENSOR_NAME_FIELD_NUMBER |
static int |
KEEP_CHECKPOINT_EVERY_N_HOURS_FIELD_NUMBER |
static int |
MAX_TO_KEEP_FIELD_NUMBER |
static int |
RESTORE_OP_NAME_FIELD_NUMBER |
static int |
SAVE_TENSOR_NAME_FIELD_NUMBER |
static int |
SHARDED_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static SaverDef |
getDefaultInstance() |
SaverDef |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getFilenameTensorName()
The name of the tensor in which to specify the filename when saving or
restoring a model checkpoint.
|
com.google.protobuf.ByteString |
getFilenameTensorNameBytes()
The name of the tensor in which to specify the filename when saving or
restoring a model checkpoint.
|
float |
getKeepCheckpointEveryNHours()
How often to keep an additional checkpoint.
|
int |
getMaxToKeep()
Maximum number of checkpoints to keep.
|
com.google.protobuf.Parser<SaverDef> |
getParserForType() |
java.lang.String |
getRestoreOpName()
The operation to run when restoring a model checkpoint.
|
com.google.protobuf.ByteString |
getRestoreOpNameBytes()
The operation to run when restoring a model checkpoint.
|
java.lang.String |
getSaveTensorName()
The operation to run when saving a model checkpoint.
|
com.google.protobuf.ByteString |
getSaveTensorNameBytes()
The operation to run when saving a model checkpoint.
|
int |
getSerializedSize() |
boolean |
getSharded()
Shard the save files, one per device that has Variable nodes.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
SaverDef.CheckpointFormatVersion |
getVersion()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7; |
int |
getVersionValue()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7; |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SaverDef.Builder |
newBuilder() |
static SaverDef.Builder |
newBuilder(SaverDef prototype) |
SaverDef.Builder |
newBuilderForType() |
protected SaverDef.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SaverDef |
parseDelimitedFrom(java.io.InputStream input) |
static SaverDef |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SaverDef |
parseFrom(byte[] data) |
static SaverDef |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SaverDef |
parseFrom(java.nio.ByteBuffer data) |
static SaverDef |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SaverDef |
parseFrom(com.google.protobuf.ByteString data) |
static SaverDef |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SaverDef |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SaverDef |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SaverDef |
parseFrom(java.io.InputStream input) |
static SaverDef |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SaverDef> |
parser() |
SaverDef.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FILENAME_TENSOR_NAME_FIELD_NUMBER
public static final int SAVE_TENSOR_NAME_FIELD_NUMBER
public static final int RESTORE_OP_NAME_FIELD_NUMBER
public static final int MAX_TO_KEEP_FIELD_NUMBER
public static final int SHARDED_FIELD_NUMBER
public static final int KEEP_CHECKPOINT_EVERY_N_HOURS_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getFilenameTensorName()
The name of the tensor in which to specify the filename when saving or restoring a model checkpoint.
string filename_tensor_name = 1;getFilenameTensorName in interface SaverDefOrBuilderpublic com.google.protobuf.ByteString getFilenameTensorNameBytes()
The name of the tensor in which to specify the filename when saving or restoring a model checkpoint.
string filename_tensor_name = 1;getFilenameTensorNameBytes in interface SaverDefOrBuilderpublic java.lang.String getSaveTensorName()
The operation to run when saving a model checkpoint.
string save_tensor_name = 2;getSaveTensorName in interface SaverDefOrBuilderpublic com.google.protobuf.ByteString getSaveTensorNameBytes()
The operation to run when saving a model checkpoint.
string save_tensor_name = 2;getSaveTensorNameBytes in interface SaverDefOrBuilderpublic java.lang.String getRestoreOpName()
The operation to run when restoring a model checkpoint.
string restore_op_name = 3;getRestoreOpName in interface SaverDefOrBuilderpublic com.google.protobuf.ByteString getRestoreOpNameBytes()
The operation to run when restoring a model checkpoint.
string restore_op_name = 3;getRestoreOpNameBytes in interface SaverDefOrBuilderpublic int getMaxToKeep()
Maximum number of checkpoints to keep. If 0, no checkpoints are deleted.
int32 max_to_keep = 4;getMaxToKeep in interface SaverDefOrBuilderpublic boolean getSharded()
Shard the save files, one per device that has Variable nodes.
bool sharded = 5;getSharded in interface SaverDefOrBuilderpublic float getKeepCheckpointEveryNHours()
How often to keep an additional checkpoint. If not specified, only the last "max_to_keep" checkpoints are kept; if specified, in addition to keeping the last "max_to_keep" checkpoints, an additional checkpoint will be kept for every n hours of training.
float keep_checkpoint_every_n_hours = 6;getKeepCheckpointEveryNHours in interface SaverDefOrBuilderpublic int getVersionValue()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;getVersionValue in interface SaverDefOrBuilderpublic SaverDef.CheckpointFormatVersion getVersion()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;getVersion in interface SaverDefOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SaverDef parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SaverDef parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SaverDef parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SaverDef parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SaverDef parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SaverDef parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SaverDef parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SaverDef parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SaverDef parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SaverDef parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SaverDef parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SaverDef parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic SaverDef.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SaverDef.Builder newBuilder()
public static SaverDef.Builder newBuilder(SaverDef prototype)
public SaverDef.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SaverDef.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SaverDef getDefaultInstance()
public static com.google.protobuf.Parser<SaverDef> parser()
public com.google.protobuf.Parser<SaverDef> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SaverDef getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder