Which version are you using? This error in the latest version contains much more informations than that
Also you can enable the anomaly detection to know which forward methods had a Tensor it needs to use that was modified inplace.
Thank you for reply.
I use the pytorch 1.2
Full error code is this:
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [4608]], which is output 0 of SelectBackward, is at version 514; expected version 513 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).
and if you don’t mind, could you let me know how use anomaly detection?