Package org.tensorflow.util
Interface SaverDefOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SaverDef,SaverDef.Builder
public interface SaverDefOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the tensor in which to specify the filename when saving or restoring a model checkpoint.com.google.protobuf.ByteStringThe name of the tensor in which to specify the filename when saving or restoring a model checkpoint.floatHow often to keep an additional checkpoint.intMaximum number of checkpoints to keep.The operation to run when restoring a model checkpoint.com.google.protobuf.ByteStringThe operation to run when restoring a model checkpoint.The operation to run when saving a model checkpoint.com.google.protobuf.ByteStringThe operation to run when saving a model checkpoint.booleanShard the save files, one per device that has Variable nodes..tensorflow.SaverDef.CheckpointFormatVersion version = 7;int.tensorflow.SaverDef.CheckpointFormatVersion version = 7;Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getFilenameTensorName
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;- Returns:
- The filenameTensorName.
-
getFilenameTensorNameBytes
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;- Returns:
- The bytes for filenameTensorName.
-
getSaveTensorName
String getSaveTensorName()The operation to run when saving a model checkpoint.
string save_tensor_name = 2;- Returns:
- The saveTensorName.
-
getSaveTensorNameBytes
com.google.protobuf.ByteString getSaveTensorNameBytes()The operation to run when saving a model checkpoint.
string save_tensor_name = 2;- Returns:
- The bytes for saveTensorName.
-
getRestoreOpName
String getRestoreOpName()The operation to run when restoring a model checkpoint.
string restore_op_name = 3;- Returns:
- The restoreOpName.
-
getRestoreOpNameBytes
com.google.protobuf.ByteString getRestoreOpNameBytes()The operation to run when restoring a model checkpoint.
string restore_op_name = 3;- Returns:
- The bytes for restoreOpName.
-
getMaxToKeep
int getMaxToKeep()Maximum number of checkpoints to keep. If 0, no checkpoints are deleted.
int32 max_to_keep = 4;- Returns:
- The maxToKeep.
-
getSharded
boolean getSharded()Shard the save files, one per device that has Variable nodes.
bool sharded = 5;- Returns:
- The sharded.
-
getKeepCheckpointEveryNHours
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;- Returns:
- The keepCheckpointEveryNHours.
-
getVersionValue
int getVersionValue().tensorflow.SaverDef.CheckpointFormatVersion version = 7;- Returns:
- The enum numeric value on the wire for version.
-
getVersion
SaverDef.CheckpointFormatVersion getVersion().tensorflow.SaverDef.CheckpointFormatVersion version = 7;- Returns:
- The version.
-