You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
during the backward pass i'm facing the following error:
"RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [1]] is at version 1; expected version 0 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. Good luck!"
Specifically the error occurs at the line out= self.gammaout +x and it seams to be due to "self.gammaout".
I also tried to change it to torch.mul(self.gamma, out) but it didn't solve the issue.
Do you have any idea on what the alternative solutions that I could try?
The text was updated successfully, but these errors were encountered:
Hi,
during the backward pass i'm facing the following error:
"RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [1]] is at version 1; expected version 0 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. Good luck!"
Specifically the error occurs at the line out= self.gammaout +x and it seams to be due to "self.gammaout".
I also tried to change it to torch.mul(self.gamma, out) but it didn't solve the issue.
Do you have any idea on what the alternative solutions that I could try?
The text was updated successfully, but these errors were encountered: