-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return bool from snapshot restore_from_latest (#498)
Summary: Pull Request resolved: #498 As title, this indicates to callers if the states were restored or not. This allows callers to do logic like: ``` restored = TorchSnapshotSaver.restore_from_latest(...) # no prior checkpoints, so initialize weights for the first attempt if not restored: <initialization logic> ``` Reviewed By: daniellepintz Differential Revision: D48207346 fbshipit-source-id: 063640f85d6d98aa46c8759610284c723cb8a91e
- Loading branch information
1 parent
84219f0
commit ca175c5
Showing
2 changed files
with
40 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters