mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-24 12:41:49 +08:00
added clean slurm save load test
This commit is contained in:
1 parent
ffa7a0dbab
commit
57edb08bd8
1 file changed
+1
-1
@@ -176,12 +176,12 @@ class TrainerIO(object):
|
||||
model = self.__get_model()
|
||||
|
||||
# load the state_dict on the model automatically
|
||||
pdb.set_trace()
|
||||
model.load_state_dict(checkpoint['state_dict'])
|
||||
|
||||
# call model hook
|
||||
model.on_hpc_load(checkpoint)
|
||||
|
||||
self.model = model
|
||||
|
||||
def max_ckpt_in_folder(self, path):
|
||||
files = os.listdir(path)
|
||||
|
||||
Reference in new issue
Block a user