-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code broken in backward #1
Comments
Hi, The code should work fine. There might some difference with respect to the python version or similar to that. The error you are getting is not an uncommon error, did you tried to google it. I think modifying the version should work. |
It's rather common error, i found it in several VAE-GAN models. |
Could you please provide your environment, i.e., the requirements of this repo code? |
I encountered the same problem, my environment is pytorch1.7+python3.9. I guess this is because in the newer version of pytorch, .step() directly changes the parameters in the graph, instead of creating a clone like in the old version. So I tried to put all optimizer.step() after all loss.backward() was completed.
|
The text was updated successfully, but these errors were encountered: