SaverDefOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
SaverDef |
Protocol buffer representing the configuration of a Saver. |
SaverDef.Builder |
Protocol buffer representing the configuration of a Saver. |
|
Public Methods
abstract
String
|
getFilenameTensorName()
The name of the tensor in which to specify the filename when saving or
restoring a model checkpoint.
|
abstract
com.google.protobuf.ByteString
|
|
abstract
float
|
|
abstract
int
|
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
boolean
|
getSharded()
Shard the save files, one per device that has Variable nodes.
|
abstract
SaverDef.CheckpointFormatVersion
|
getVersion()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;
|
abstract
int
|
getVersionValue()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;
|
Public Methods
public
abstract
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
abstract
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
abstract
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
abstract
int
getMaxToKeep
()
Maximum number of checkpoints to keep. If 0, no checkpoints are deleted.
int32 max_to_keep = 4;
public
abstract
String
getRestoreOpName
()
The operation to run when restoring a model checkpoint.
string restore_op_name = 3;
public
abstract
com.google.protobuf.ByteString
getRestoreOpNameBytes
()
The operation to run when restoring a model checkpoint.
string restore_op_name = 3;
public
abstract
String
getSaveTensorName
()
The operation to run when saving a model checkpoint.
string save_tensor_name = 2;
public
abstract
com.google.protobuf.ByteString
getSaveTensorNameBytes
()
The operation to run when saving a model checkpoint.
string save_tensor_name = 2;
public
abstract
boolean
getSharded
()
Shard the save files, one per device that has Variable nodes.
bool sharded = 5;
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;
public
abstract
int
getVersionValue
()
.tensorflow.SaverDef.CheckpointFormatVersion version = 7;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# SaverDefOrBuilder\n\npublic interface **SaverDefOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [SaverDef](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDef), [SaverDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDef.Builder) |-----------------------------------------------------------------------------------|---------------------------------------------------------------------| | [SaverDef](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDef) | ``` Protocol buffer representing the configuration of a Saver. ``` | | [SaverDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDef.Builder) | ``` Protocol buffer representing the configuration of a Saver. ``` | |||\n\n### Public Methods\n\n|----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract String | [getFilenameTensorName](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDefOrBuilder#getFilenameTensorName())() ``` The name of the tensor in which to specify the filename when saving or restoring a model checkpoint. ``` |\n| abstract com.google.protobuf.ByteString | [getFilenameTensorNameBytes](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDefOrBuilder#getFilenameTensorNameBytes())() ``` The name of the tensor in which to specify the filename when saving or restoring a model checkpoint. ``` |\n| abstract float | [getKeepCheckpointEveryNHours](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDefOrBuilder#getKeepCheckpointEveryNHours())() ``` How often to keep an additional checkpoint. ``` |\n| abstract int | [getMaxToKeep](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDefOrBuilder#getMaxToKeep())() ``` Maximum number of checkpoints to keep. ``` |\n| abstract String | [getRestoreOpName](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDefOrBuilder#getRestoreOpName())() ``` The operation to run when restoring a model checkpoint. ``` |\n| abstract com.google.protobuf.ByteString | [getRestoreOpNameBytes](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDefOrBuilder#getRestoreOpNameBytes())() ``` The operation to run when restoring a model checkpoint. ``` |\n| abstract String | [getSaveTensorName](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDefOrBuilder#getSaveTensorName())() ``` The operation to run when saving a model checkpoint. ``` |\n| abstract com.google.protobuf.ByteString | [getSaveTensorNameBytes](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDefOrBuilder#getSaveTensorNameBytes())() ``` The operation to run when saving a model checkpoint. ``` |\n| abstract boolean | [getSharded](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDefOrBuilder#getSharded())() ``` Shard the save files, one per device that has Variable nodes. ``` |\n| abstract [SaverDef.CheckpointFormatVersion](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDef.CheckpointFormatVersion) | [getVersion](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDefOrBuilder#getVersion())() `.tensorflow.SaverDef.CheckpointFormatVersion version = 7;` |\n| abstract int | [getVersionValue](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDefOrBuilder#getVersionValue())() `.tensorflow.SaverDef.CheckpointFormatVersion version = 7;` |\n\nPublic Methods\n--------------\n\n#### public abstract String\n**getFilenameTensorName**\n()\n\n\u003cbr /\u003e\n\n```\n The name of the tensor in which to specify the filename when saving or\n restoring a model checkpoint.\n \n```\n`string filename_tensor_name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getFilenameTensorNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n The name of the tensor in which to specify the filename when saving or\n restoring a model checkpoint.\n \n```\n`string filename_tensor_name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract float\n**getKeepCheckpointEveryNHours**\n()\n\n\u003cbr /\u003e\n\n```\n How often to keep an additional checkpoint. If not specified, only the last\n \"max_to_keep\" checkpoints are kept; if specified, in addition to keeping\n the last \"max_to_keep\" checkpoints, an additional checkpoint will be kept\n for every n hours of training.\n \n```\n`float keep_checkpoint_every_n_hours = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getMaxToKeep**\n()\n\n\u003cbr /\u003e\n\n```\n Maximum number of checkpoints to keep. If 0, no checkpoints are deleted.\n \n```\n`int32 max_to_keep = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getRestoreOpName**\n()\n\n\u003cbr /\u003e\n\n```\n The operation to run when restoring a model checkpoint.\n \n```\n`string restore_op_name = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getRestoreOpNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n The operation to run when restoring a model checkpoint.\n \n```\n`string restore_op_name = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getSaveTensorName**\n()\n\n\u003cbr /\u003e\n\n```\n The operation to run when saving a model checkpoint.\n \n```\n`string save_tensor_name = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getSaveTensorNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n The operation to run when saving a model checkpoint.\n \n```\n`string save_tensor_name = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getSharded**\n()\n\n\u003cbr /\u003e\n\n```\n Shard the save files, one per device that has Variable nodes.\n \n```\n`bool sharded = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract [SaverDef.CheckpointFormatVersion](/jvm/api_docs/java/org/tensorflow/proto/util/SaverDef.CheckpointFormatVersion)\n**getVersion**\n()\n\n`.tensorflow.SaverDef.CheckpointFormatVersion version = 7;` \n\n#### public abstract int\n**getVersionValue**\n()\n\n`.tensorflow.SaverDef.CheckpointFormatVersion version = 7;`"]]