RuntimeError: one of the variables needed for gradient computation has been modified by an inplace o

Bug: 
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.LongTensor [4, 512, 512]] is at version 1; expected version 0 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later. Good luck!

[W python_anomaly_mode.cpp:104] Warning: Error detected in NllLoss2DBackward0. Traceback of forward call that

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace o最先出现在Python成神之路

版权声明:
作者:congcong
链接:https://www.techfm.club/p/25366.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>