Skip to content

Commit

Permalink
cleanup destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jun 18, 2021
1 parent b09b415 commit 9c4ac05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
name='run_' + wandb_logger.wandb_run.id + '_model',
aliases=['latest', 'best', 'stripped'])
wandb_logger.finish_run()
else:

if WORLD_SIZE > 1:
dist.destroy_process_group()
torch.cuda.empty_cache()
return results
Expand Down

0 comments on commit 9c4ac05

Please sign in to comment.