-
Notifications
You must be signed in to change notification settings - Fork 181
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
Possible bug in half-precision scatter #269
Comments
Are you sure src_half = src_float.half().abs()
result_half_manual = torch.mean(src_half) produces |
Using
Here, |
Indeed. Seems to be a bug in N = 10000
src = torch.ones(N, dtype=torch.half)
out = torch.zeros(1, dtype=torch.half)
index = torch.zeros(N, dtype=torch.long)
out.scatter_add_(0, index, src) cannot produce an output larger than |
This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved? |
I am getting different results for manually computing the mean of a half-precision tensor using
torch.mean
vs.torch_scatter.scatter
.Is this expected behavior?
prints:
The text was updated successfully, but these errors were encountered: