Fix issue that pytorch 1.1 does not flush tensorboard
This commit is contained in:
parent
bd3798222a
commit
341bdbff84
@ -134,7 +134,7 @@ def gpu_worker(local_rank, args):
|
|||||||
|
|
||||||
if args.rank == 0:
|
if args.rank == 0:
|
||||||
print(end='', flush=True)
|
print(end='', flush=True)
|
||||||
args.logger.flush()
|
args.logger.close()
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
'epoch': epoch + 1,
|
'epoch': epoch + 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user