Skip to content
New issue

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

Difference between this function and torch.Tensor.scatter_reduce_ #454

Open
cinntamani opened this issue Aug 3, 2024 · 1 comment
Open

Comments

@cinntamani
Copy link

Hello,

It seems that this function achieves the same effect as torch.Tensor.scatter_reduce_(dim, index, src, reduce, *, include_self=True) in native PyTorch (https://pytorch.org/docs/stable/generated/torch.Tensor.scatter_reduce_.html).

May I ask what are the pros and cons of using either version?

Thank you!

@SamGalanakis
Copy link

I see "The backward pass is implemented only for src.shape == index.shape." on the native torch implementation and I believe he backward pass is implemented here in all cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants