Skip to content

Commit 790deaa

Browse files
committed
Remove barrier call
1 parent 6d3aef3 commit 790deaa

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

algorithmic_efficiency/logger_utils.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,9 @@ def get_log_dir(
7373
'to resume training from this dir? [y/N]:'.format(experiment_path))
7474
if USE_PYTORCH_DDP:
7575
dist.barrier()
76-
try:
77-
if resume.lower() != 'y':
78-
sys.exit()
79-
except RuntimeError:
76+
if resume.lower() != 'y':
8077
sys.exit()
8178

82-
if USE_PYTORCH_DDP:
83-
dist.barrier()
8479
logging.info(f'Creating experiment directory at {experiment_path}.')
8580
makedir(experiment_path)
8681
return experiment_path

0 commit comments

Comments
 (0)