mirror of
https://github.com/twitter/the-algorithm-ml.git
synced 2024-06-04 16:58:47 +02:00
Merge d02aa2ad8f
into b85210863f
This commit is contained in:
commit
d674e724d6
|
@ -73,8 +73,8 @@ class Snapshot:
|
|||
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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user