SaverDef

public final class SaverDef

 Protocol buffer representing the configuration of a Saver.
 
Protobuf type tensorflow.SaverDef

Nested Classes

class SaverDef.Builder
 Protocol buffer representing the configuration of a Saver. 
enum SaverDef.CheckpointFormatVersion
 A version number that identifies a different on-disk checkpoint format. 

Constants

int FILENAME_TENSOR_NAME_FIELD_NUMBER
int KEEP_CHECKPOINT_EVERY_N_HOURS_FIELD_NUMBER
int MAX_TO_KEEP_FIELD_NUMBER
int RESTORE_OP_NAME_FIELD_NUMBER
int SAVE_TENSOR_NAME_FIELD_NUMBER
int SHARDED_FIELD_NUMBER
int VERSION_FIELD_NUMBER

Public Methods

boolean
equals(Object obj)
static SaverDef
SaverDef
final static com.google.protobuf.Descriptors.Descriptor
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.
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.
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
boolean
getSharded()
 Shard the save files, one per device that has Variable nodes.
final com.google.protobuf.UnknownFieldSet
SaverDef.CheckpointFormatVersion
getVersion()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;
int
getVersionValue()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;
int
final boolean
static SaverDef.Builder
static SaverDef.Builder
newBuilder(SaverDef prototype)
SaverDef.Builder
static SaverDef
parseDelimitedFrom(InputStream input)
static SaverDef
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SaverDef
parseFrom(ByteBuffer data)
static SaverDef
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SaverDef
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SaverDef
parseFrom(com.google.protobuf.CodedInputStream input)
static SaverDef
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SaverDef
parseFrom(com.google.protobuf.ByteString data)
static SaverDef
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SaverDef
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
parser()
SaverDef.Builder
void
writeTo(com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int FILENAME_TENSOR_NAME_FIELD_NUMBER

Constant Value: 1

public static final int KEEP_CHECKPOINT_EVERY_N_HOURS_FIELD_NUMBER

Constant Value: 6

public static final int MAX_TO_KEEP_FIELD_NUMBER

Constant Value: 4

public static final int RESTORE_OP_NAME_FIELD_NUMBER

Constant Value: 3

public static final int SAVE_TENSOR_NAME_FIELD_NUMBER

Constant Value: 2

public static final int SHARDED_FIELD_NUMBER

Constant Value: 5

public static final int VERSION_FIELD_NUMBER

Constant Value: 7

Public Methods

public boolean equals (Object obj)

public static SaverDef getDefaultInstance ()

public SaverDef getDefaultInstanceForType ()

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

public 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;

public 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;

public 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;

public int getMaxToKeep ()

 Maximum number of checkpoints to keep.  If 0, no checkpoints are deleted.
 
int32 max_to_keep = 4;

public getParserForType ()

public String getRestoreOpName ()

 The operation to run when restoring a model checkpoint.
 
string restore_op_name = 3;

public com.google.protobuf.ByteString getRestoreOpNameBytes ()

 The operation to run when restoring a model checkpoint.
 
string restore_op_name = 3;

public String getSaveTensorName ()

 The operation to run when saving a model checkpoint.
 
string save_tensor_name = 2;

public com.google.protobuf.ByteString getSaveTensorNameBytes ()

 The operation to run when saving a model checkpoint.
 
string save_tensor_name = 2;

public int getSerializedSize ()

public boolean getSharded ()

 Shard the save files, one per device that has Variable nodes.
 
bool sharded = 5;

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

public SaverDef.CheckpointFormatVersion getVersion ()

.tensorflow.SaverDef.CheckpointFormatVersion version = 7;

public int getVersionValue ()

.tensorflow.SaverDef.CheckpointFormatVersion version = 7;

public int hashCode ()

public final boolean isInitialized ()

public static SaverDef.Builder newBuilder ()

public static SaverDef.Builder newBuilder (SaverDef prototype)

public SaverDef.Builder newBuilderForType ()

public static SaverDef parseDelimitedFrom (InputStream input)

Throws
IOException

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

Throws
IOException

public static SaverDef parseFrom (ByteBuffer data)

Throws
InvalidProtocolBufferException

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

Throws
IOException

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

Throws
InvalidProtocolBufferException

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

Throws
IOException

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

Throws
InvalidProtocolBufferException

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

Throws
InvalidProtocolBufferException

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

Throws
IOException

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

Throws
InvalidProtocolBufferException

public static parser ()

public SaverDef.Builder toBuilder ()

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

Throws
IOException