-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Masked select decomposition #137662
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
Masked select decomposition #137662
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/137662
Note: Links to docs will display an error until the docs builds have been completed. ❌ 56 New FailuresAs of commit 6a2f1e1 with merge base 5516ac5 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
8db387a to
cf4c30b
Compare
cf4c30b to
1970077
Compare
|
@dvorjackz has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1 similar comment
|
@dvorjackz has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
72c9501 to
a48513d
Compare
|
@dvorjackz has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
I think this is ok |
|
@dvorjackz has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
| return torch.where(masked_rows, zeros, out) | ||
|
|
||
|
|
||
| @register_decomposition(aten.masked_select) |
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.
Are there any tests for this?
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.
I don't think so, would you be able to point me to where the decomp tests are? I can try adding one
angelayi
left a comment
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.
Looks good to me! It pretty much matches the meta kernel too.
|
@dvorjackz has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
fb05c51 to
e9fbc02
Compare
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Needed since ExecuTorch has no portable kernel for
aten.masked_select.