We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68d3ca0 commit 12976dfCopy full SHA for 12976df
algorithmic_efficiency/logger_utils.py
@@ -66,13 +66,15 @@ def get_log_dir(
66
f'Resuming from experiment directory {experiment_path} because '
67
'--resume_last_run was set.')
68
else:
69
- resume = 'y'
70
- if RANK == 0:
71
- resume = input(
72
- 'Found existing experiment dir with the same name: {}. Do you wish '
73
- 'to resume training from this dir? [y/N]:'.format(experiment_path))
74
- if resume.lower() != 'y':
75
- sys.exit()
+ try:
+ if RANK == 0:
+ resume = input(
+ 'Found existing experiment dir with the same name: {}. Do you wish '
+ 'to resume training from this dir? [y/N]:'.format(experiment_path))
+ if resume.lower() != 'y':
+ sys.exit()
76
+ except RuntimeError:
77
78
79
if USE_PYTORCH_DDP:
80
dist.barrier()
0 commit comments