VariableSaver¶
-
class
tfsnippet.VariableSaver(variables, save_dir, max_versions=2, filename='variables.dat', latest_file='latest', save_meta=True, name=None, scope=None)¶ Bases:
tfsnippet.utils.reuse.VarScopeObjectVersion controlled saving and restoring TensorFlow variables.
Attributes Summary
nameGet the name of this object. variable_scopeGet the variable scope of this object. Methods Summary
get_latest_file()Get the latest available checkpoint file. restore([ignore_non_exist])Restore the checkpoint from file if it exists. save([global_step])Save the checkpoint to file. Attributes Documentation
-
name¶ Get the name of this object.
-
variable_scope¶ Get the variable scope of this object.
Methods Documentation
-
get_latest_file()¶ Get the latest available checkpoint file.
-