Pytorch中的错误和bug
Posted sbj123456789
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Pytorch中的错误和bug相关的知识,希望对你有一定的参考价值。
RuntimeError:one of the variables needed for gradient computation has been modified by an inplace operation
原因:0.4.0把Varible和Tensor融合为一个Tensor,inplace操作,之前对Varible能用,但现在对Tensor,就会出错了,所以找到模型中所有的inplace操作,换成非inplace的写法就行
参考:https://blog.csdn.net/DuinoDu/article/details/80435127
以上是关于Pytorch中的错误和bug的主要内容,如果未能解决你的问题,请参考以下文章
Pytorch 中的错误:libcudart.so.10.2:无法打开共享对象文件:没有这样的文件或目录