Hi all,
After upgrading to v0.4, when I reran my previous code which could be successfully run on v0.3.1,
I got the error message as shown in the figure:

image.png1302×374 20.7 KB

And I found this error message comes from “pytorch/tools/autograd/templates/Functions.cpp”:

(Error message happened while executing the “optimizer.backward()” function)
At first, I thought that there may be some mistakes in my code, so I checked it again and again, and finally got still the same error message 
However, I found that if I downgrade from v0.4 to v0.3.1, this error suddenly disappeared and the code works as it should be…
Is there anyone knows what happened to this error @@?
Thanks!!!