Fix issue that pytorch 1.1 does not flush tensorboard

This commit is contained in:
Yin Li 2019-12-12 15:25:45 -05:00
parent bd3798222a
commit 341bdbff84

View File

@ -134,7 +134,7 @@ def gpu_worker(local_rank, args):
if args.rank == 0:
print(end='', flush=True)
args.logger.flush()
args.logger.close()
state = {
'epoch': epoch + 1,