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
pip install torch_scatter
The version of torch_scatter is 2.1.2
torch_scatter
2.1.2
import torch from torch_scatter import scatter_max src = torch.Tensor([[2, 0, 1, 4, 3], [0, 2, 1, 3, 4]]) * -1 index = torch.tensor([[4, 5, 4, 2, 3], [0, 0, 2, 2, 1]]) out = src.new_zeros((2, 6)) out, argmax = scatter_max(src, index, out=out) print(out) print(argmax)
The result of out is:
out
tensor([[0., 0., 0., 0., 0., 0.], [0., 0., 0., 0., 0., 0.]])
The text was updated successfully, but these errors were encountered:
Can you paste installation log? Looks like installation may have failed.
Sorry, something went wrong.
No branches or pull requests
The version of
torch_scatter
is2.1.2
The result of
out
is:The text was updated successfully, but these errors were encountered: