Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions common/checkpointing/snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def restore(self, checkpoint: str) -> None:
snapshot.restore(self.state)
# we still need to ensure that extra_state has walltime in it
self.state["extra_state"] = torchsnapshot.StateDict(step=self.step, walltime=0.0)

logging.info(f"Restored snapshot from {snapshot.path}. ({time.time() - start_time:.05}s")
else:
logging.info(f"Restored snapshot from {snapshot.path}. ({time.time() - start_time:.05}s")

@classmethod
def get_torch_snapshot(
Expand Down