Skip to content

Commit

Permalink
rename torchsnapshot_saver_types to checkpointer_types (#625)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #625

Renames `torchsnapshot_saver_types.py` to `checkpointer_types.py` as some of the dataclasses can be reused in other checkpointing callbacks (and helps create a unified api for restoring checkpoints through the use of `RestoreOptions` across all checkpointers

Reviewed By: anshulverma

Differential Revision: D51408793

fbshipit-source-id: 958471750076cd6cf09b99babcf86d85e439a6d5
  • Loading branch information
JKSenthil authored and facebook-github-bot committed Nov 20, 2023
1 parent 223eeee commit 03b8ec6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions torchtnt/framework/callbacks/torchsnapshot_saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
from pyre_extensions import none_throws

from torchtnt.framework.callback import Callback
from torchtnt.framework.callbacks.torchsnapshot_saver_types import (
KnobOptions,
RestoreOptions,
)
from torchtnt.framework.callbacks.checkpointer_types import KnobOptions, RestoreOptions
from torchtnt.framework.state import EntryPoint, State
from torchtnt.framework.unit import (
AppStateMixin,
Expand Down

0 comments on commit 03b8ec6

Please sign in to comment.