困扰了很久的问题,注释掉loss.backward()后能够运行,但训练无意义。最后同事说可能是CUDA版本的问题,尝试了一下,成功解决!
进入 pytorch官网
pytorch报错:Process finished with exit code -1073741819 (0xC0000005)
复制“Run this Command”的命令
pytorch报错:Process finished with exit code -1073741819 (0xC0000005)
粘贴命令,运行即可,更新完成后,再次运行程序

相关文章: