Skip to content
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

Issue with Inplace Operation during Training #9

Open
pantheon5100 opened this issue Dec 2, 2024 · 0 comments
Open

Issue with Inplace Operation during Training #9

pantheon5100 opened this issue Dec 2, 2024 · 0 comments

Comments

@pantheon5100
Copy link

Dear author,

I hope you're doing well. I encountered an error while setting up and training the model. The error occurs during the l_d_real.backward() call, and the traceback points to the following message:

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [256]] is at version 5; expected version 4 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later.

It seems that an inplace operation is causing an issue with the gradient computation, but I'm unsure of how to resolve it. Could you kindly help me troubleshoot and resolve this problem?

Thank you very much for your time and assistance!

Best regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant