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
Add Half support for AvgPool2d on CPU #109578
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/109578
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 1 PendingAs of commit 078a606 with merge base fe01605 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
f28b0e5
to
c1f1f3a
Compare
b8f3bd3
to
39f5e2b
Compare
Cherry-picked from #96080. |
3abe1c7
to
31d4c06
Compare
@cpuhrsch Could you please review this PR ? Thank you. |
@cpuhrsch Could you please review this PR ? Thank you. |
test/test_mps.py
Outdated
@@ -799,7 +799,7 @@ def mps_ops_modifier(ops): | |||
'logit': [torch.float16], | |||
} | |||
|
|||
EMPTY_OPS_SKIPLIST = { | |||
OPS_SKIPLIST = { |
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.
Can you keep the old EMPTY_OPS_SKIPLIST
and create a new dictionary for this? Just in case there's more assumptions baked into EMPTY_OPS_SKIPLIST
. Also cc @albanD for the right PoC since this is an MPS related change.
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.
Yes put it in the skiplist below please.
This one is related to non-determinisms of the empty op only
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. Fixed.
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.
Changes not related to MPS look fine.
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!
FYI @kulinseth for the MPS skip
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Add Half support for AvgPool2d (both channels last and channels first) on CPU Pull Request resolved: pytorch#109578 Approved by: https://github.com/mingfeima, https://github.com/albanD
Add Half support for AvgPool2d (both channels last and channels first) on CPU Pull Request resolved: pytorch#109578 Approved by: https://github.com/mingfeima, https://github.com/albanD
Add Half support for AvgPool2d (both channels last and channels first) on CPU Pull Request resolved: pytorch#109578 Approved by: https://github.com/mingfeima, https://github.com/albanD
Add Half support for AvgPool2d (both channels last and channels first) on CPU Pull Request resolved: pytorch#109578 Approved by: https://github.com/mingfeima, https://github.com/albanD
Add Half support for AvgPool2d (both channels last and channels first) on CPU
cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10