-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Fix the padding issue of quantized average pool operator #28260
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
|
I think it is ready to go. Can you stamp it? @supriyar @raghuramank100 |
facebook-github-bot
left a comment
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.
@lly-zero-one has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
supriyar
left a comment
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.
Please address comment. Otherwise looks good!
facebook-github-bot
left a comment
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.
@lly-zero-one is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: This is actually a bug in both testing and the average pool implementation. In testing, we used the quantized value as float input and failed to padding the value with zero_point. In op implementation, the size for averaging is not correct for padding case when count_include_pad is true. Pull Request resolved: pytorch/pytorch#28260 Differential Revision: D18039960 Pulled By: lly-zero-one fbshipit-source-id: 7b5d34498b60f5d574a276a22798c9f576944734
|
@lly-zero-one merged this pull request in 4d9c017. |
Summary: This is actually a bug in both testing and the average pool implementation. In testing, we used the quantized value as float input and failed to padding the value with zero_point. In op implementation, the size for averaging is not correct for padding case when count_include_pad is true. Pull Request resolved: pytorch#28260 Differential Revision: D18039960 Pulled By: lly-zero-one fbshipit-source-id: 7b5d34498b60f5d574a276a22798c9f576944734
This is actually a bug in both testing and the average pool implementation.
In testing, we used the quantized value as float input and failed to padding the value with zero_point.
In op implementation, the size for averaging is not correct for padding case when count_include_pad is true.