Skip to content

Commit

Permalink
Remove DDP destroy_process_group() on train end (ultralytics#8935)
Browse files Browse the repository at this point in the history
May resolve ultralytics#7307
  • Loading branch information
glenn-jocher authored and Clay Januhowski committed Sep 8, 2022
1 parent 4d97da1 commit 24e08b9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,6 @@ def main(opt, callbacks=Callbacks()):
# Train
if not opt.evolve:
train(opt.hyp, opt, device, callbacks)
if WORLD_SIZE > 1 and RANK == 0:
LOGGER.info('Destroying process group... ')
dist.destroy_process_group()

# Evolve hyperparameters (optional)
else:
Expand Down

0 comments on commit 24e08b9

Please sign in to comment.