We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbe8dc4 commit 360bd71Copy full SHA for 360bd71
pytorch_lightning/utilities/cloud_io.py
@@ -47,7 +47,7 @@ def get_filesystem(path: Union[str, Path]) -> AbstractFileSystem:
47
return LocalFileSystem()
48
49
50
-def atomic_save(checkpoint: Any, filepath: str) -> None:
+def atomic_save(checkpoint: Dict[str, Any], filepath: Union[str, Path]) -> None:
51
"""Saves a checkpoint atomically, avoiding the creation of incomplete checkpoints.
52
53
Args:
0 commit comments