mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
adding support for interrupt signals
This commit is contained in:
@@ -130,7 +130,7 @@ class TrainerIO(object):
|
||||
|
||||
def max_ckpt_in_folder(self, path):
|
||||
files = os.listdir(path)
|
||||
files = [x for x if 'ckpt_' in x]
|
||||
files = [x for x in files if 'ckpt_' in x]
|
||||
if len(files) == 0:
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user