SaverDef.Builder

public static final class SaverDef.Builder

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

Public Methods

SaverDef.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SaverDef
build()
SaverDef
SaverDef.Builder
clear()
SaverDef.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SaverDef.Builder
clearFilenameTensorName()
 The name of the tensor in which to specify the filename when saving or
 restoring a model checkpoint.
SaverDef.Builder
clearKeepCheckpointEveryNHours()
 How often to keep an additional checkpoint.
SaverDef.Builder
clearMaxToKeep()
 Maximum number of checkpoints to keep.
SaverDef.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SaverDef.Builder
clearRestoreOpName()
 The operation to run when restoring a model checkpoint.
SaverDef.Builder
clearSaveTensorName()
 The operation to run when saving a model checkpoint.
SaverDef.Builder
clearSharded()
 Shard the save files, one per device that has Variable nodes.
SaverDef.Builder
clearVersion()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;
SaverDef.Builder
clone()
SaverDef
final static com.google.protobuf.Descriptors.Descriptor
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.
boolean
getSharded()
 Shard the save files, one per device that has Variable nodes.
SaverDef.CheckpointFormatVersion
getVersion()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;
int
getVersionValue()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;
final boolean
SaverDef.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SaverDef.Builder
mergeFrom(com.google.protobuf.Message other)
final SaverDef.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SaverDef.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SaverDef.Builder
setFilenameTensorName(String value)
 The name of the tensor in which to specify the filename when saving or
 restoring a model checkpoint.
SaverDef.Builder
setFilenameTensorNameBytes(com.google.protobuf.ByteString value)
 The name of the tensor in which to specify the filename when saving or
 restoring a model checkpoint.
SaverDef.Builder
setKeepCheckpointEveryNHours(float value)
 How often to keep an additional checkpoint.
SaverDef.Builder
setMaxToKeep(int value)
 Maximum number of checkpoints to keep.
SaverDef.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SaverDef.Builder
setRestoreOpName(String value)
 The operation to run when restoring a model checkpoint.
SaverDef.Builder
setRestoreOpNameBytes(com.google.protobuf.ByteString value)
 The operation to run when restoring a model checkpoint.
SaverDef.Builder
setSaveTensorName(String value)
 The operation to run when saving a model checkpoint.
SaverDef.Builder
setSaveTensorNameBytes(com.google.protobuf.ByteString value)
 The operation to run when saving a model checkpoint.
SaverDef.Builder
setSharded(boolean value)
 Shard the save files, one per device that has Variable nodes.
final SaverDef.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SaverDef.Builder
setVersion(SaverDef.CheckpointFormatVersion value)
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;
SaverDef.Builder
setVersionValue(int value)
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;

Inherited Methods

Public Methods

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

public SaverDef build ()

public SaverDef buildPartial ()

public SaverDef.Builder clear ()

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

public SaverDef.Builder clearFilenameTensorName ()

 The name of the tensor in which to specify the filename when saving or
 restoring a model checkpoint.
 
string filename_tensor_name = 1;

public SaverDef.Builder clearKeepCheckpointEveryNHours ()

 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 SaverDef.Builder clearMaxToKeep ()

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

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

public SaverDef.Builder clearRestoreOpName ()

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

public SaverDef.Builder clearSaveTensorName ()

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

public SaverDef.Builder clearSharded ()

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

public SaverDef.Builder clearVersion ()

.tensorflow.SaverDef.CheckpointFormatVersion version = 7;

public SaverDef.Builder clone ()

public SaverDef getDefaultInstanceForType ()

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

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

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 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 boolean getSharded ()

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

public SaverDef.CheckpointFormatVersion getVersion ()

.tensorflow.SaverDef.CheckpointFormatVersion version = 7;

public int getVersionValue ()

.tensorflow.SaverDef.CheckpointFormatVersion version = 7;

public final boolean isInitialized ()

public SaverDef.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public SaverDef.Builder mergeFrom (com.google.protobuf.Message other)

public final SaverDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public SaverDef.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public SaverDef.Builder setFilenameTensorName (String value)

 The name of the tensor in which to specify the filename when saving or
 restoring a model checkpoint.
 
string filename_tensor_name = 1;

public SaverDef.Builder setFilenameTensorNameBytes (com.google.protobuf.ByteString value)

 The name of the tensor in which to specify the filename when saving or
 restoring a model checkpoint.
 
string filename_tensor_name = 1;

public SaverDef.Builder setKeepCheckpointEveryNHours (float value)

 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 SaverDef.Builder setMaxToKeep (int value)

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

public SaverDef.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

public SaverDef.Builder setRestoreOpName (String value)

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

public SaverDef.Builder setRestoreOpNameBytes (com.google.protobuf.ByteString value)

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

public SaverDef.Builder setSaveTensorName (String value)

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

public SaverDef.Builder setSaveTensorNameBytes (com.google.protobuf.ByteString value)

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

public SaverDef.Builder setSharded (boolean value)

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

public final SaverDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public SaverDef.Builder setVersion (SaverDef.CheckpointFormatVersion value)

.tensorflow.SaverDef.CheckpointFormatVersion version = 7;

public SaverDef.Builder setVersionValue (int value)

.tensorflow.SaverDef.CheckpointFormatVersion version = 7;