Skip to content

[Relax][PyTorch] Honor count_include_pad for FX AvgPool2d modules - #21081

Open
JarvisDing-sdu wants to merge 1 commit into
apache:mainfrom
JarvisDing-sdu:codex/tvm-fx-avgpool-count-1128
Open

JarvisDing-sdu wants to merge 1 commit into
apache:mainfrom
JarvisDing-sdu:codex/tvm-fx-avgpool-count-1128

Conversation

@JarvisDing-sdu

Copy link
Copy Markdown

AvgPool2d(count_include_pad=False) must exclude implicit padding when averaging a boundary window. The module-based FX path drops the parameter; functional controls using the same LLVM backend were correct. After passing the attribute all 16 local module cases agreed. PR #21020 changes divisor_override in the adjacent call and does not pass count_include_pad.

The comparisons above were performed on the local research checkout. The patch applies to upstream 1091f2f. Prepared with assistance from OpenAI Codex.

@JarvisDing-sdu
JarvisDing-sdu marked this pull request as ready for review November 29, 2026 00:06

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant