提交 afe1df38 authored 作者: Glenn Jocher's avatar Glenn Jocher

dist.destroy_process_group() bug fix

上级 72d06147
...@@ -356,7 +356,7 @@ def train(hyp): ...@@ -356,7 +356,7 @@ def train(hyp):
if not opt.evolve: if not opt.evolve:
plot_results() # save as results.png plot_results() # save as results.png
print('%g epochs completed in %.3f hours.\n' % (epoch - start_epoch + 1, (time.time() - t0) / 3600)) print('%g epochs completed in %.3f hours.\n' % (epoch - start_epoch + 1, (time.time() - t0) / 3600))
dist.destroy_process_group() if torch.cuda.device_count() > 1 else None dist.destroy_process_group() if device.type != 'cpu' and torch.cuda.device_count() > 1 else None
torch.cuda.empty_cache() torch.cuda.empty_cache()
return results return results
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论