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

Custom yaml module activation gradient fails #17

Closed
JeiKeiLim opened this issue Feb 20, 2021 · 1 comment · Fixed by #19
Closed

Custom yaml module activation gradient fails #17

JeiKeiLim opened this issue Feb 20, 2021 · 1 comment · Fixed by #19
Labels
bug Something isn't working

Comments

@JeiKeiLim
Copy link
Owner

How to reproduce

Try to train with custom yaml module

Error Message

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [64, 48, 16, 16]], which is output 0 of ReluBackward0, is at version 1; expected version 0 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).

How it should work

Training should be proceeded normally.

@JeiKeiLim JeiKeiLim added the bug Something isn't working label Feb 20, 2021
@JeiKeiLim
Copy link
Owner Author

Turns out, this error was from Add operation. I will fix this in a bit.

@JeiKeiLim JeiKeiLim linked a pull request Feb 22, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant