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
It's an issue about how PyTorch (or numpy?) manages in-place operations and advanced indexing with repeating indices, it seems PyTorch only adds the last corresponding row from src to the specified index.
So if Xb[0]=[1,1,1], dC[1] will add the last row of demb[0], which is demb[0][2], not to accumulate demb[0][0], demb[0][1] and demb[0][2].
I don't know why it is `wrong.
And the correct answer is:
The text was updated successfully, but these errors were encountered: