-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Add Half support for range, logspace, logit, median, nanmedian, kthvalue, poisson, cummax, cummin, prod, cumprod, histc, logcumsumexp, vander, cross, aten2, logaddexp, logaddexp2, hypot, and nextafter on CPU #107764
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/107764
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 6fe7bf7 with merge base 64fd027 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
12e9b2e to
212f29a
Compare
352e7b4 to
badb645
Compare
db6daf0 to
0096ea0
Compare
619bf41 to
facd4df
Compare
b1cc5aa to
38abff4
Compare
a8fe409 to
d5ae1be
Compare
test/test_binary_ufuncs.py
Outdated
| b_16 = b.to(dtype=lowp_dtype) | ||
| actual_16 = a_16.atan2(b_16) | ||
| self.assertEqual(actual_16, actual.to(dtype=lowp_dtype)) | ||
| self.assertEqual(expected, actual_16.view(-1), exact_dtype=False, rtol=0, atol=0.02) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are not using the rtol and atol variables set previously?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your comments. Fixed it.
|
@cpuhrsch Could you please review this PR ? Thank you. |
|
@CaoE - I know this might be annoying, but can we split this up a bit more? While the number of lines changed isn't high, the number of ops is. That'll make it harder to bisect if there's compounding issues. |
…lue, poisson, cummax, cummin, prod, cumprod, histc, logcumsumexp, vander, cross, aten2, logaddexp, logaddexp2, hypot, and nextafter on CPU
Add Half support for range, logspace, logit, median, nanmedian, kthvalue, poisson, cummax, cummin, prod, cumprod, histc, logcumsumexp, vander, cross, aten2, logaddexp, logaddexp2, hypot, and nextafter on CPU.
cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler @Xia-Weiwen @ngimel