We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, first of all great work, then I found that the line 113 :
y = Variable(torch.sparse.torch.eye(NUM_CLASSES)).cuda().index_select(dim=0, index=max_length_indices.data)
produce: RuntimeError: index_select(): argument 'index' must be Variable, not torch.cuda.LongTensor
I resolve this issue removing the '.data' from the 'max_length_indices'.
Torch Version: 0.4.0a0+96ceb91
Regards
The text was updated successfully, but these errors were encountered:
I have experienced the same runtime error. I want to confirm that the above workaround fixes the error.
I use pyTorch 0.3.1.post2
Sorry, something went wrong.
No branches or pull requests
Hi, first of all great work, then I found that the line 113 :
y = Variable(torch.sparse.torch.eye(NUM_CLASSES)).cuda().index_select(dim=0, index=max_length_indices.data)
produce:
RuntimeError: index_select(): argument 'index' must be Variable, not torch.cuda.LongTensor
I resolve this issue removing the '.data' from the 'max_length_indices'.
Torch Version: 0.4.0a0+96ceb91
Regards
The text was updated successfully, but these errors were encountered: