You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I am trying to incorporate tensorboard with the following snippet in the train function if args.gpu == 0: args.tb.add_scalar('loss/train', loss.item(), (len(train_loader)*epoch)+i) args.tb.add_scalar('acc1/train', acc1[0], (len(train_loader)*epoch)+i)
But I am receiving TypeError: can't pickle _thread.lock objects error originating from mp.spawn().
Any way out?
The text was updated successfully, but these errors were encountered:
Hi!
I am trying to incorporate tensorboard with the following snippet in the
train
functionif args.gpu == 0:
args.tb.add_scalar('loss/train', loss.item(), (len(train_loader)*epoch)+i)
args.tb.add_scalar('acc1/train', acc1[0], (len(train_loader)*epoch)+i)
But I am receiving
TypeError: can't pickle _thread.lock objects
error originating frommp.spawn()
.Any way out?
The text was updated successfully, but these errors were encountered: