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

Update L. 116 of backbone.py #999

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BenCretois
Copy link

When fine-tuning the network for our own problem, we encountered the error RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [32, 768, 248]].

This seemed to be triggered by the in place operation occuring L. 116. To solve this we replaced x += x_conv by x = x.clone() + x_conv

When fine-tuning the network for our own problem, we encountered the error RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [32, 768, 248]].

This seemed to be triggered by the in place operation occuring L. 116.  To solve this we replaced `x += x_conv` by `x = x.clone() + x_conv`
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

Successfully merging this pull request may close these issues.

1 participant