【KernelGen】Add nonzero_numpy operator - #1755
Merged
w1120029931-bit merged 1 commit intoMay 11, 2026
Merged
Conversation
Schopenhauer-loves-Hegel
requested review from
0x45f,
huangyiqun,
kiddyjinjin and
zhangpeiyang1
as code owners
February 27, 2026 06:17
Collaborator
Author
|
Closing in favor of grouped PRs to reduce review overhead. |
Contributor
|
@Schopenhauer-loves-Hegel You may want to rebase this onto 'master' for picking up the latest CI jobs. |
factnn
force-pushed
the
auto-gen/nonzero_numpy
branch
from
April 15, 2026 20:36
0f498d1 to
c817050
Compare
factnn
force-pushed
the
auto-gen/nonzero_numpy
branch
from
April 18, 2026 01:09
c817050 to
d898788
Compare
factnn
force-pushed
the
auto-gen/nonzero_numpy
branch
2 times, most recently
from
April 23, 2026 09:06
236368c to
c807332
Compare
tengqm
previously approved these changes
Apr 23, 2026
factnn
requested review from
bin913,
douxetpur and
w1120029931-bit
as code owners
April 26, 2026 06:48
tengqm
reviewed
Apr 26, 2026
factnn
force-pushed
the
auto-gen/nonzero_numpy
branch
from
April 28, 2026 11:46
13c0254 to
6d845d8
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
factnn
force-pushed
the
auto-gen/nonzero_numpy
branch
from
May 8, 2026 07:59
0873397 to
5b2ccd9
Compare
Contributor
UT ResultsBranch rebased to upstream/master and tests passed: |
Collaborator
|
please resolve comments |
Contributor
|
Thanks for the review! All addressed:
|
tengqm
pushed a commit
that referenced
this pull request
May 17, 2026
Co-authored-by: factnn <1050552884@qq.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Category
Operator
Type of Change
New Feature
Description
Add
nonzero_numpyoperator implementation with Triton kernel.manual_kernelIssue
N/A
Progress
Performance
torch.bfloat16
torch.bool
torch.float16
torch.float32
torch.int16
torch.int32
Overall: median speedup = 0.251x, mean speedup = 0.422x (48 data points)
Generated by auto_gen tool with Claude Code