Skip to content
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

[MPS] Fix correctness issues with Pool2D ops #94348

Closed
wants to merge 3 commits into from

Conversation

razarmehr
Copy link
Collaborator

  • Fix wrong results in AvgPool2D when count_include_pad=True
  • Fix issues with adaptive average and max pool2d
  • Remove the redundant blocking copies from AdaptiveMaxPool2d
  • Add divisor to cached string key to avoid conflicts
  • Add test case when both ceil_mode and count_include_pad are True (previously failed).
  • Clean up redundant code

- Add divisor to cached string key to avoid conflicts
- Fallback to CPU when divisor is passed for int64 input types
- Remove MaxPool2D from UNIMPLEMENTED_OP list (was put there by mistake)
- Add test case when both ceil_mode and count_include_pad are True (previously failed).
* Fix issues with adaptive average and max pool2d
- Warn and fallback to CPU for AdaptiveAvgPool2d if input/output sizes are not divisble
- Remove the redundant blocking copies from AdaptiveMaxPool2d
- Clean up redundant code

* Replace warnings with TORCH_CHECK() for adaptive pooling
@pytorch-bot pytorch-bot bot added ciflow/mps Run MPS tests (subset of trunk) release notes: mps Release notes category labels Feb 7, 2023
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 7, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/94348

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 Failures

As of commit ad0ab28:

NEW FAILURES - The following jobs have failed:

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

@soulitzer soulitzer added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Feb 8, 2023
@kulinseth
Copy link
Collaborator

@pytorchbot merge -f "MPS tests are green."

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/mps Run MPS tests (subset of trunk) Merged open source release notes: mps Release notes category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants