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

vgg里面的 ReLU默认的参数inplace=True 当我们调用vgg结构的时候注意 要将inplace改成 False

不然会报错

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

posted @ 2018-05-28 21:26  zx-y  阅读(6752)  评论(0编辑  收藏  举报