From ce8a597dab6cbad480aa4a2bd888a12269733186 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 24 Jul 2019 19:31:38 +0200 Subject: [PATCH] updates --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index 68ecb89c..89bfdcea 100644 --- a/train.py +++ b/train.py @@ -315,7 +315,7 @@ def train(cfg, # Report time print('%g epochs completed in %.3f hours.' % (epoch - start_epoch + 1, (time.time() - t0) / 3600)) - dist.destroy_process_group() if torch.cuda.is_available() else None + dist.destroy_process_group() if torch.cuda.device_count() > 1 else None torch.cuda.empty_cache() return results