When objects are loaded from the SavedModel, they don't retain their `_gather_saveables_for_checkpoint` functions, which can result in values not being loaded from the checkpoint. This CL adds a field in the SavedModel proto that stores a save and restore function for each SaveableObject in each node. When loading into Python, the SaveableObjects are restored using the functions. PiperOrigin-RevId: 318549786 Change-Id: I688c72d7658e1bca98abf373a13a0e15a7fb83e2 |
||
---|---|---|
.. | ||
BUILD | ||
checkpoint_options.py | ||
functional_saver_test.py | ||
functional_saver.py | ||
saveable_hook.py | ||
saveable_object_util.py | ||
saveable_object.py |