Skip to content

Conversation

@jackzhxng
Copy link
Contributor

@jackzhxng jackzhxng commented Oct 9, 2024

Needed since ExecuTorch has no portable kernel for aten.masked_select.

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 9, 2024

🔗 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 Failures

As of commit 6a2f1e1 with merge base 5516ac5 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@jackzhxng jackzhxng force-pushed the jz/masked-select-decomp branch from 8db387a to cf4c30b Compare October 9, 2024 22:48
@jackzhxng jackzhxng marked this pull request as ready for review October 9, 2024 22:49
@jackzhxng jackzhxng force-pushed the jz/masked-select-decomp branch from cf4c30b to 1970077 Compare October 9, 2024 22:50
@jackzhxng jackzhxng added the topic: not user facing topic category label Oct 9, 2024
@facebook-github-bot
Copy link
Contributor

@dvorjackz has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

1 similar comment
@facebook-github-bot
Copy link
Contributor

@dvorjackz has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@jackzhxng jackzhxng force-pushed the jz/masked-select-decomp branch from 72c9501 to a48513d Compare October 14, 2024 23:11
@facebook-github-bot
Copy link
Contributor

@dvorjackz has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@larryliu0820
Copy link
Contributor

I think this is ok

@jackzhxng jackzhxng removed the request for review from jbschlosser October 16, 2024 22:46
@facebook-github-bot
Copy link
Contributor

@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)
Copy link
Collaborator

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?

Copy link
Contributor Author

@jackzhxng jackzhxng Oct 17, 2024

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

Copy link
Contributor

@angelayi angelayi left a 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.

@jackzhxng jackzhxng removed oncall: distributed Add this issue/PR to distributed oncall triage queue module: cpu CPU specific problem (e.g., perf, algorithm) module: amp (automated mixed precision) autocast NNC release notes: quantization release notes category ciflow/mps Run MPS tests (subset of trunk) module: inductor module: dynamo module: distributed_checkpoint module: compiled autograd compiled_autograd ciflow/inductor labels Oct 17, 2024
@facebook-github-bot
Copy link
Contributor

@dvorjackz has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2025

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the Stale label Jan 1, 2025
@github-actions github-actions bot closed this Jan 31, 2025
@github-actions github-actions bot deleted the jz/masked-select-decomp branch March 3, 2025 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants