-
Notifications
You must be signed in to change notification settings - Fork 30
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
Feature/elementwise functions out keyword #1209
Feature/elementwise functions out keyword #1209
Conversation
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1209/index.html |
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_98 ran successfully. |
8d1f68b
to
f774228
Compare
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_108 ran successfully. |
|
f774228
to
21e1415
Compare
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_108 ran successfully. |
Changes in this PR lead to a drop in coverage (84.036% in the target branch vs. 83.897% in this branch). Since your changes only modify |
I added new tests and now the coverage for after adding new tests before adding new tests: |
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_110 ran successfully. |
Tests fail on my WSL where GPU does not support fp64. Specifically UPD: I pushed fixes for this and added tests to increase coverage. |
Also ensure that test_add_order exercises non-same dtypes to improve coverage.
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_111 ran successfully. |
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_112 ran successfully. |
dpctl/tests/elementwise/test_abs.py
Outdated
@@ -22,9 +22,17 @@ def test_abs_out_type(dtype): | |||
np.dtype("c16"): np.dtype("f8"), | |||
} | |||
assert dpt.abs(X).dtype == type_map[arg_dt] | |||
|
|||
out = dpt.empty_like(X, dtype=type_map[arg_dt]) | |||
dpt.abs(X, out) |
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.
I think out
should not be allowed to be a positional argument in array API. Could you please change it to a keyword argument in the test suite?
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.
sure!
Array API standard conformance tests for dpctl=0.14.3dev1=py310h76be34b_113 ran successfully. |
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.
Thank you @vtavana ! Please merge when ready
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Adding out keyword for elementwise functions