CheckpointSavableObject¶
-
class
tfsnippet.
CheckpointSavableObject
¶ Bases:
object
Base class for all objects that can be saved via
CheckpointSaver
.Methods Summary
get_state
()Get the internal states of the object. set_state
(state)Set the internal states of the object. Methods Documentation
-
get_state
()¶ Get the internal states of the object.
The returned state dict must be pickle-able.
Returns: The internal states dict. Return type: dict
-
set_state
(state)¶ Set the internal states of the object.
Parameters: state – The internal states dict.
-