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

[fix] adaptive_{avg, max}_pool variants : cuda & cpu #88906

Closed
wants to merge 15 commits into from

Conversation

khushi-411
Copy link
Contributor

@khushi-411 khushi-411 commented Nov 11, 2022

Fixes #78868

TODO

  • add tests
  • adaptive_avg_pool2d
  • adaptive_avg_pool3d
  • adaptive_max_pool2d
  • fix adaptive_max_pool3d_cuda

cc: @kshitij12345 @ngimel

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 11, 2022

🔗 Helpful Links

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

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

✅ No Failures

As of commit 9f5f72b:
💚 Looks good so far! There are no failures yet. 💚

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

@khushi-411 khushi-411 changed the title fix adaptive max and avg pooling ops in cuda & cpu [fix] adaptive_{avg, max}_pool variants : cuda & cpu Nov 11, 2022
test/nn/test_pooling.py Outdated Show resolved Hide resolved
@khushi-411 khushi-411 marked this pull request as ready for review November 18, 2022 14:31
@H-Huang H-Huang added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Nov 22, 2022
test/nn/test_pooling.py Outdated Show resolved Hide resolved
test/nn/test_pooling.py Outdated Show resolved Hide resolved
test/nn/test_pooling.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start, @khushi-411, but see some comments/questions about the tests inline!

test/nn/test_pooling.py Outdated Show resolved Hide resolved
@khushi-411 khushi-411 closed this Dec 8, 2022
@khushi-411 khushi-411 reopened this Dec 8, 2022
@khushi-411
Copy link
Contributor Author

Hi, Gentle ping, @mruberry!

@khushi-411
Copy link
Contributor Author

Hi, @mruberry, Gentle ping :)

Copy link
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! LGTM!

@khushi-411
Copy link
Contributor Author

Thanks for the informative comments @mruberry @kshitij12345!

Merging this now...

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 13, 2022
@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: This PR is too stale; the last push date was more than 3 days ago. Please rebase and try again. You can rebase by leaving the following comment on this PR:
@pytorchbot rebase

Details for Dev Infra team Raised by workflow job

@khushi-411
Copy link
Contributor Author

@pytorchmergebot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@khushi-411 khushi-411 deleted the fix_apd_pool branch December 14, 2022 03:15
pytorchmergebot pushed a commit that referenced this pull request Jan 12, 2023
Ref: #88906 (comment)

Covers:
- [x] adaptive_avg_pool1d
- [x] adaptive_avg_pool2d
- [x] adaptive_avg_pool3d
- [x] adaptive_max_pool1d
- [x] adaptive_max_pool2d
- [x] adaptive_max_pool3d

Pull Request resolved: #90924
Approved by: https://github.com/mruberry
pytorchmergebot pushed a commit that referenced this pull request Jun 23, 2023
Add bfloat16 support in `adaptive_{max, avg}_pool3d` as discussed in #88906 (comment).
Pull Request resolved: #89754
Approved by: https://github.com/jgong5, https://github.com/kit1980
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged open source 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.

adapative_{avg, max}_pool will crash in the backward pass on cuda on empty output size
7 participants