Fix avg_pool2d divisor_override being ignored when count_include_pad is false. (#18616)#18616
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18616
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit 62b4531 with merge base 3d2c853 ( BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
…is false. (pytorch#18616) Summary: When count_include_pad was false, the divisor was always set to the non-padded element count, silently ignoring any divisor_override. Now divisor_override is passed into avg_pool2d_nchw and takes priority over both count_include_pad and the per-element count. Reviewed By: DrJessop Differential Revision: D98942362
70a6715 to
23c366d
Compare
…is false. (pytorch#18616) Summary: When count_include_pad was false, the divisor was always set to the non-padded element count, silently ignoring any divisor_override. Now divisor_override is passed into avg_pool2d_nchw and takes priority over both count_include_pad and the per-element count. Reviewed By: DrJessop Differential Revision: D98942362
…is false. (pytorch#18616) Summary: When count_include_pad was false, the divisor was always set to the non-padded element count, silently ignoring any divisor_override. Now divisor_override is passed into avg_pool2d_nchw and takes priority over both count_include_pad and the per-element count. Reviewed By: DrJessop Differential Revision: D98942362
23c366d to
bb1ac14
Compare
…is false. (pytorch#18616) Summary: When count_include_pad was false, the divisor was always set to the non-padded element count, silently ignoring any divisor_override. Now divisor_override is passed into avg_pool2d_nchw and takes priority over both count_include_pad and the per-element count. Reviewed By: DrJessop Differential Revision: D98942362
bb1ac14 to
ff998ba
Compare
…is false. (pytorch#18616) Summary: When count_include_pad was false, the divisor was always set to the non-padded element count, silently ignoring any divisor_override. Now divisor_override is passed into avg_pool2d_nchw and takes priority over both count_include_pad and the per-element count. Reviewed By: DrJessop Differential Revision: D98942362
ff998ba to
62b4531
Compare
…is false. (pytorch#18616) Differential Revision: D98942362 Pull Request resolved: pytorch#18616
Summary:
When count_include_pad was false, the divisor was always set to the non-padded element count, silently ignoring any divisor_override. Now divisor_override is passed into avg_pool2d_nchw and takes priority over both count_include_pad and the per-element count.
Reviewed By: DrJessop
Differential Revision: D98942362