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 channels last support for AdaptiveAvgPool2d on CPU path #42104
add channels last support for AdaptiveAvgPool2d on CPU path #42104
Conversation
Updates:
Results:Machine: CPU Intel(R) Xeon(R) Platinum 8260 CPU @ 2.40GHz, 2*20 cores. Code base: before: 96aaa311, after: 86bf0cc7. Time per iteration (unit: ms), the lower the better.
|
💊 CI failures summary and remediationsAs of commit 271c085 (more details on the Dr. CI page):
Extra GitHub checks: 1 failed
ci.pytorch.org: 1 failedThis comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 25 times. |
@ngimel could you please enlighten me how to enable the nhwc test for CPU at |
@VitalyFedyunin @ngimel is it OK to use |
d14f995
to
797744f
Compare
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.
Overall looks good (I still need to dive into correctness). Please add tests for various memory format input and outputs.
797744f
to
e49de0c
Compare
Hi @mingfeima! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, 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. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
optimize adaptive average pool2d forward path optimize adaptive average pool2d backward path remove unused headers minor change minor change rename the header; add adaptive max pooling in future. minor change loosen adapative_pool2d test on nhwc to both device cuda and cpu minor change
e49de0c
to
271c085
Compare
@VitalyFedyunin test cases added for cpu path on channels last memory format, please review. Sorry for the delay, got distracted by some other job. |
Codecov Report
@@ Coverage Diff @@
## master #42104 +/- ##
==========================================
- Coverage 60.82% 60.81% -0.01%
==========================================
Files 2751 2753 +2
Lines 254434 254392 -42
==========================================
- Hits 154748 154712 -36
+ Misses 99686 99680 -6 |
please review the new one #48916 |
This patch adds channels last support for
nn.AdaptiveAvgPool2d
, both forward and backward included.