Repository navigation
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
Merged
Merged
Implement tensor.isin
#2098
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
518fd6a
Implement tensor.isin
ndgrigorian 85106f4
factor common utilities for scalar arguments to a new file
ndgrigorian ce757c8
Make constexpr variables in `isin` static
ndgrigorian 8425cdc
Update implementation of `isin`
ndgrigorian 204025a
Update per review comments
ndgrigorian cfb5154
Allow x to be a scalar in isin and remove assume_unique
ndgrigorian a448725
Make comparator static constexpr
ndgrigorian 882a431
add basic tests for isin functionality
ndgrigorian d11626c
Remove unused import of dpctl in _set_functions.py
ndgrigorian 710a6d0
Add type hints to isin
ndgrigorian 411b976
Add usm_type to test_buf in isin
ndgrigorian 3077bd6
Address review comments for isin tests
ndgrigorian ed9f376
Add test covering nans and +/- 0 in isin
ndgrigorian 72278b5
Add test for isin with Python scalar args
ndgrigorian 5b877c8
Add test for combinations of dtypes as inputs to isin
ndgrigorian 538176c
Add compute follows data test for isin
ndgrigorian 0cd24f5
Add isin to rendered docs
ndgrigorian 0070331
Test that isin output is C-contiguous when input is strided
ndgrigorian 2ebb3a1
improve formatting of isin docstring
ndgrigorian 26f68d2
move rich_comparisons.hpp into utils
ndgrigorian 365c3b4
factor out compare template param in isin
ndgrigorian 44661ba
add missing includes to rich_comparisons
ndgrigorian 62a9fa4
drop unused includes in isin kernel implementation
ndgrigorian ff68bca
validate that `invert` kwarg is boolean
ndgrigorian e28e1aa
add a test for input validation of invert
ndgrigorian 68bc84e
make invert bool type check stricter
ndgrigorian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update implementation of
isin
permit scalar input for second argument, address some review comments, add docstring
- Loading branch information
commit 8425cdc0ee1d87f88198ce00987b74ec3042b97c
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.