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
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [256]] is at version 3; expected version 2 instead
#19
Open
parisafarboud opened this issue
Nov 24, 2022
· 3 comments
Hi, yes I've solved the problem. The problem was because I was training on single GPU and I commented the line below:
wetr = DistributedDataParallel(wetr, device_ids=[args.local_rank], find_unused_parameters=True)
I got Runtime error in backward while running the code with any versions of python and pytorch, how should I solve that, and which versions satisfy?
The text was updated successfully, but these errors were encountered: