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
Add cupyx.rsqrt
#846
Add cupyx.rsqrt
#846
Conversation
Is it safe to add |
I followed the convention of how @unnonouno san, do you have any ideas? |
I prefer |
OK, I fixed to expose it as |
Is it safe to bring |
Do you have a concern with the name If the former is your concern, and we can't come up with any better name, we can ask "Do you have any plan to implement numpy.ext?" to numpy-discussion list. This at least notify NumPy dev team to know about us and the fact that we want to avoid future collision. |
My concern is both. I think it's difficult (or impossible) for them to answer your question. |
Honestly I was thinking of that but I didn't come up with the good name. How about
Yes, I completely agree with it. I'm also not expecting the answer or promise. |
I feel The cleanest solution would be creating a completely new root namespace, like |
I think they're good. One concern is that |
In the weekly meeting we think it is good to have a separate package namespace ( |
Rebased to the latest master. |
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.
LGTM except comment.
tests/cupyx_tests/test_rsqrt.py
Outdated
def test_rsqrt(self, dtype): | ||
# Adding 1.0 to avoid division by zero. | ||
a = testing.shaped_arange((2, 3), numpy, dtype) + 1.0 | ||
out = cupy.ext.rsqrt(cupy.array(a)) |
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.
cupyx.rsqrt
?
Jenkins, test this please. |
jenkins, test this please. |
Codecov Report
@@ Coverage Diff @@
## master #846 +/- ##
=======================================
Coverage 93.37% 93.37%
=======================================
Files 107 107
Lines 5807 5807
=======================================
Hits 5422 5422
Misses 385 385 Continue to review full report at Codecov.
|
Cloud you remove |
Oh, sorry. Force-pushed. |
LGTM! |
This PR implements
cupy.rsqrt
as discussed in chainer/chainer#4092.