Skip to content

Commit

Permalink
Move get_x_checkpoint functions to utils/checkpoint.py
Browse files Browse the repository at this point in the history
Reviewed By: JKSenthil

Differential Revision: D56450720
  • Loading branch information
diego-urgell authored and facebook-github-bot committed Apr 26, 2024
1 parent 4743897 commit 888305f
Show file tree
Hide file tree
Showing 7 changed files with 675 additions and 660 deletions.
2 changes: 1 addition & 1 deletion tests/framework/callbacks/test_base_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def test_restore_from_latest_empty_dir(self) -> None:
self.assertEqual(
log.output,
[
f"WARNING:torchtnt.framework.callbacks._checkpoint_utils:Input dirpath doesn't contain any subdirectories: {temp_dir}"
f"WARNING:torchtnt.utils.checkpoint:Input dirpath doesn't contain any subdirectories: {temp_dir}"
],
)
self.assertFalse(restored)
Expand Down
Loading

0 comments on commit 888305f

Please sign in to comment.