-
Notifications
You must be signed in to change notification settings - Fork 25.6k
MPS: Implement aten::count_nonzero.dim_IntList #78169
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
Conversation
Hi @RohanM! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
🔗 Helpful links
❌ 1 New FailuresAs of commit 43721d8 (more details on the Dr. CI page): Expand to see more
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages
|
508fd86
to
618fe66
Compare
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
@albanD @kulinseth Hello! First time pytorch contributor here. I've written this PR and could use a review - are you able to assist? |
Thanks @RohanM for your contribution, much appreciated!. Overall the PR looks good. |
Thanks! Yes, I developed and tested on my 2021 MBP running Monterey 12.4. That's a good point, I'm guessing the MPS specs aren't running on CI at the moment. I rebased, re-ran
|
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, and thanks for testing it.
@pytorchbot merge this please |
Hey @RohanM. |
Summary: - See: #77764 Implements the `aten::count_nonzero.dim_IntList` operator (as used by [torch.count_nonzero](https://pytorch.org/docs/stable/generated/torch.count_nonzero.html)) for [MPS](https://pytorch.org/blog/introducing-accelerated-pytorch-training-on-mac/). Pull Request resolved: #78169 Approved by: https://github.com/malfet, https://github.com/kulinseth, https://github.com/albanD Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/f42b42d3eb9af4ea1d09f00a13e9b6dc9efcc0f8 Reviewed By: seemethere Differential Revision: D36815110 Pulled By: seemethere fbshipit-source-id: 1ef7e0f317a75dae2c7fcd610cb56c5812d89da2
- See: pytorch#77764 Implements the `aten::count_nonzero.dim_IntList` operator (as used by [torch.count_nonzero](https://pytorch.org/docs/stable/generated/torch.count_nonzero.html)) for [MPS](https://pytorch.org/blog/introducing-accelerated-pytorch-training-on-mac/). Pull Request resolved: pytorch#78169 Approved by: https://github.com/malfet, https://github.com/kulinseth, https://github.com/albanD
- See: #77764 Implements the `aten::count_nonzero.dim_IntList` operator (as used by [torch.count_nonzero](https://pytorch.org/docs/stable/generated/torch.count_nonzero.html)) for [MPS](https://pytorch.org/blog/introducing-accelerated-pytorch-training-on-mac/). Pull Request resolved: #78169 Approved by: https://github.com/malfet, https://github.com/kulinseth, https://github.com/albanD (cherry picked from commit f42b42d)
Implements the
aten::count_nonzero.dim_IntList
operator (as used by torch.count_nonzero) for MPS.