Skip to content

Commit e08a759

Browse files
committed
Clean up logic
1 parent 790deaa commit e08a759

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

algorithmic_efficiency/logger_utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@ def get_log_dir(
7171
resume = input(
7272
'Found existing experiment dir with the same name: {}. Do you wish '
7373
'to resume training from this dir? [y/N]:'.format(experiment_path))
74-
if USE_PYTORCH_DDP:
75-
dist.barrier()
76-
if resume.lower() != 'y':
77-
sys.exit()
74+
if resume.lower() != 'y':
75+
sys.exit()
7876

7977
logging.info(f'Creating experiment directory at {experiment_path}.')
8078
makedir(experiment_path)

0 commit comments

Comments
 (0)