Repository navigation
Implement kernels for median and paritition functions
#3138
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
Open
ndgrigorian
wants to merge
35
commits into
master
Choose a base branch
from
feature/implement-median-partition-fns
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,926
−807
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
b7412df
Implements kernels for median and partition functions
ndgrigorian f772a86
Report the coverage of dpnp.partition's kernel
ndgrigorian d6f2a49
Instrument only the host code of the radix select sources
ndgrigorian 5f762d3
Avoid an all-NaN row in TestNanMedianSelect::test_basic
ndgrigorian 9bc5b87
Check the shape of out in the select path of median and nanmedian
ndgrigorian b228094
Test the queue and USM type of partition and argpartition results
ndgrigorian 4a4d385
Validate the inputs of _median and _partition for an empty batch
ndgrigorian 45c205f
Add the changelog entries of argpartition and the radix select
ndgrigorian fd4c14a
Accept an out of the keepdims shape in median and nanmedian
ndgrigorian a130521
Give -0.0 the radix key of +0.0 by comparing keys
ndgrigorian de21311
Order the all_nan fill of the empty-batch median test after its creation
ndgrigorian 6197e60
Instrument only the host code of the whole _statistics_impl module
ndgrigorian 6e7c737
Average the two medians of an even row even when they are equal
ndgrigorian 4999347
Reject src and dst sharing memory in _partition and _argpartition
ndgrigorian ebf1e5b
Validate kth of partition and argpartition as NumPy does
ndgrigorian c37e2d8
Say overwrite_input may modify the input of median and nanmedian
ndgrigorian c02897b
Remove dpnp_less_comp and the backend partition mentions
ndgrigorian 8b13ff6
Ignore NumPy's intended overflow in the special-value median tests
ndgrigorian d4826ca
Wait for the all_nan fill of _median if the selection throws
ndgrigorian e710323
Reject an all_nan sharing memory with src or dst in _median
ndgrigorian 72d1cd4
Make is_median_type_pair a variable template, which llvm-cov doesn't …
ndgrigorian 0763597
Filter top_k only after the first pass of the multi-group radix selec…
ndgrigorian 25e12f2
Keep the per work-group maxima of the median with the counts rather t…
ndgrigorian 32e565c
Say sub-group rows of radix_partition_impl come out sorted
ndgrigorian 9074bc5
Warn in the nanmedian docstring that it synchronizes
ndgrigorian 358772b
Cast the medians to out unsafely, so complex nanmedian accepts an out…
ndgrigorian 7d5de58
Run the out, all-NaN and usm_ndarray median tests with complex input …
ndgrigorian 6a93a8c
Read the all-NaN flag of nanmedian in place from host USM
ndgrigorian 22c3e4d
Fill the median of an empty array with NaN, without selecting or sorting
ndgrigorian 7cb4b7d
Link dpnp.argpartition from dpnp.top_k and ndarray.argsort
ndgrigorian fa677d6
Fix the ndarray.partition docstring: a Parameters heading, a link and…
ndgrigorian 08a32d3
Say partition selects only for a single kth in the changelog
ndgrigorian 2f07cdc
Build partition.cpp with -fno-fast-math, as topk.cpp in the same module
ndgrigorian 4acd8d3
Add the \file blocks to the partition and median sources
ndgrigorian 6d970d3
Keep the all-NaN flag of nanmedian in host USM only where the device …
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
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
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
Oops, something went wrong.
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.