-
Notifications
You must be signed in to change notification settings - Fork 31
Implement tensor.isin
#2098
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
Implement tensor.isin
#2098
Conversation
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_8 ran successfully. |
1805102
to
5355fb8
Compare
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_10 ran successfully. |
@antonwolfy tests still need to be added, but |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_17 ran successfully. |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_18 ran successfully. |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_22 ran successfully. |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_23 ran successfully. |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_24 ran successfully. |
b3822f3
to
f7e0967
Compare
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_23 ran successfully. |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_24 ran successfully. |
8f19cb5
to
3cf7445
Compare
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_26 ran successfully. |
3cf7445
to
7c6a4be
Compare
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_27 ran successfully. |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_30 ran successfully. |
16c63e4
to
23c61a8
Compare
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_35 ran successfully. |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_58 ran successfully. |
allows these comparisons to be shared outside of sorting more conveniently
a8d9474
to
62a9fa4
Compare
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_153 ran successfully. |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_157 ran successfully. |
b61f09e
to
1ac19ae
Compare
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 @ndgrigorian, no more comments from me
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_158 ran successfully. |
1ac19ae
to
68bc84e
Compare
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_158 ran successfully. |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_161 ran successfully. |
This PR proposes an implementation for
isin
, a function likely coming to a future array API specification, which leverages a similar kernel to the implementation ofsearchsorted
This implementation uses the
searchsorted
kernel to check if the value has a position in the array. If that position is the number of elements in the array, it is not a member. Otherwise, ifarr[pos] == val
for some arrayarr
being searched for valueval
, thenval
is a member.