mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-27 13:12:20 +08:00
testing hpc save load
This commit is contained in:
1 parent
97980355e3
commit
2408aa886d
1 file changed
+2
-2
@@ -144,7 +144,7 @@ class TrainerIO(object):
|
||||
filepath = '{}/hpc_ckpt_{}.ckpt'.format(folderpath, ckpt_number)
|
||||
|
||||
# give model a chance to do something on hpc_save
|
||||
self.on_hpc_save()
|
||||
self.model.on_hpc_save()
|
||||
|
||||
# request what to save from the model
|
||||
checkpoint_dict = self.dump_checkpoint()
|
||||
@@ -168,7 +168,7 @@ class TrainerIO(object):
|
||||
model.load_model_specific(checkpoint)
|
||||
|
||||
# call model hook
|
||||
self.on_hpc_load()
|
||||
self.model.on_hpc_load()
|
||||
|
||||
def max_ckpt_in_folder(self, path):
|
||||
files = os.listdir(path)
|
||||
|
||||
Reference in new issue
Block a user