-
Notifications
You must be signed in to change notification settings - Fork 25.6k
AvgPool: Ensure all cells are valid in ceil mode #41368
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
💊 CI failures summary and remediationsAs of commit 0b00129 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
Needs benchmarks before and after |
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.
@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
Logic looks pretty reasonable. Benchmarking should show a perf hit but hopefully it is not too bad.
I've run the long benchmarks for |
Closes #36977
This avoid the division by zero that was causing NaNs to appear in the output.
AvgPooling2d
andAvgPooling3d
both had this issue on CPU and CUDA.