From 2b3109eeb05a609538e4b378f0e00a4fa78d11c0 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 20 Sep 2021 13:12:48 +0200 Subject: [PATCH] Fix DDP destruction `LOGGER.info()` (#4863) --- train.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/train.py b/train.py index 6f98a64..51a0e12 100644 --- a/train.py +++ b/train.py @@ -510,7 +510,8 @@ def main(opt, callbacks=Callbacks()): if not opt.evolve: train(opt.hyp, opt, device, callbacks) 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) else: