This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[sparse] slice for csr on two dimensions, cpu implementation #8331
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3733381
slice axis for csr (cpu impl)
ZiyueHuang b680fac
fix indice bug and use kernel launch
ZiyueHuang b1ba370
Merge remote-tracking branch 'upstream/master' into slice-axis-csr
ZiyueHuang ec07bf4
small fix
ZiyueHuang 688c212
misc updates to address comments
ZiyueHuang 1fb751c
fix type
ZiyueHuang 72b6d65
Merge remote-tracking branch 'upstream/master' into slice-axis-csr
ZiyueHuang 50b4eb4
Merge remote-tracking branch 'upstream/master' into slice-axis-csr
ZiyueHuang 2c3849b
csr slice
ZiyueHuang 086ba4a
unittest
ZiyueHuang d7c99ec
fix lint
ZiyueHuang 9b16b69
address comments
ZiyueHuang 5f50690
Merge remote-tracking branch 'upstream/master' into slice-axis-csr
ZiyueHuang 3e1445c
return csr zeros before kernel launch if nnz=0
ZiyueHuang 0988a3b
fix
ZiyueHuang a63e6e3
Merge remote-tracking branch 'upstream/master' into slice-axis-csr
ZiyueHuang 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 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 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 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.
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.
What happens here if input is a CSR Array with all zeroes ?
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.
Thanks for your comments. If input is zeros, kernel launch will return immediately. Unittest for zeros input case is added.
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.
Is that still true on GPU, when we add GPU support? This PR is dealing with some bugs for zero inputs for dot operator #8470
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.
For CSRNDArray,
storage_initialized()
returnaux_shape(0).Size() != 0
, I think it is always true for a valid CSRNDArray except for rank-0 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.
Changed to returning csr zeros immediately if nnz=0.