-
Notifications
You must be signed in to change notification settings - Fork 23
Refactor dpnp.fix() to reuse dpnp.trunc internally
#2722
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
base: master
Are you sure you want to change the base?
Conversation
|
View rendered docs @ https://intelpython.github.io/dpnp/pull/2722/index.html |
| assert_array_equal(result, expected) | ||
|
|
||
| @pytest.mark.parametrize("xp", [numpy, dpnp]) | ||
| def test_out_wrong_tuple_len(self, xp, func): |
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.
What is the point to move the test from TestUfunc scope to TestRoundingFuncs?
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.
dpnp.fix no longer exposes .nin and .nout so I removed it from TestUfunc and added test_out_wrong_tuple_len to TestRoundingFuncs to keep the coverage and extend this case for rounding functions
|
Array API standard conformance tests for dpnp=0.20.0dev1=py313h509198e_48 ran successfully. |
This PR rewrites
dpnp.fixto reusedpnp.truncinternally removing the backend implementation ofdpnp.fixand aligning the documentation with NumPy