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
sorted_indices = torch.argsort(topk_indices)
should be
sorted_indices = torch.sort(topk_indices)
Right?
The text was updated successfully, but these errors were encountered:
fix: correct indices to address #5
485e14d
Nice catch, sorry about that!
I do in fact need the argsort() output for the gather here, but like you mentioned the gather for x and y should be the sorted indices themselves.
argsort()
x
y
Let me know if this makes sense to you, and thanks for pointing it out.
Sorry, something went wrong.
That makes sense now!
I also used:
sorted_indices, index = torch.sort(topk_indices, dim=1)
so that the sorted_indices could be used for x gather and the index could be used for output gather.
No branches or pull requests
sorted_indices = torch.argsort(topk_indices)
should be
sorted_indices = torch.sort(topk_indices)
Right?
The text was updated successfully, but these errors were encountered: