-
Notifications
You must be signed in to change notification settings - Fork 23
Implement dpnp.isin
#2595
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?
Implement dpnp.isin
#2595
Conversation
de4e3bb to
df81181
Compare
|
View rendered docs @ https://intelpython.github.io/dpnp/pull/2595/index.html |
|
Array API standard conformance tests for dpnp=0.20.0dev1=py313h509198e_9 ran successfully. |
df81181 to
0b51fa3
Compare
07f280b to
7d29652
Compare
7d29652 to
42e9893
Compare
3200677 to
77d5512
Compare
77d5512 to
02dd391
Compare
| ) | ||
| usm_element = dpnp.get_usm_ndarray(element) | ||
| usm_test = dpnp.get_usm_ndarray(test_elements) | ||
| return dpnp.get_result_array( |
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.
In that case we always know dpt.isin will return usm_ndarray:
| return dpnp.get_result_array( | |
| return dpnp_array._create_from_usm_ndarray( |
| ) | ||
| is None | ||
| ): | ||
| raise dpu.ExecutionPlacementError( |
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.
Could you please add a test to cover that?
This PR leverages the recently-added
dpctl.tensor.isinto implementdpnp.isin