Fix DDP destruction `LOGGER.info()` (#4863)
This commit is contained in:
parent
2809616345
commit
2b3109eeb0
3
train.py
3
train.py
|
|
@ -510,7 +510,8 @@ def main(opt, callbacks=Callbacks()):
|
||||||
if not opt.evolve:
|
if not opt.evolve:
|
||||||
train(opt.hyp, opt, device, callbacks)
|
train(opt.hyp, opt, device, callbacks)
|
||||||
if WORLD_SIZE > 1 and RANK == 0:
|
if WORLD_SIZE > 1 and RANK == 0:
|
||||||
_ = LOGGER.info('Destroying process group... ', end=''), dist.destroy_process_group(), LOGGER.info('Done.')
|
LOGGER.info('Destroying process group... ')
|
||||||
|
dist.destroy_process_group()
|
||||||
|
|
||||||
# Evolve hyperparameters (optional)
|
# Evolve hyperparameters (optional)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue