Skip to content

Conversation

@guan404ming
Copy link
Member

@guan404ming guan404ming commented Nov 13, 2025

Related Issue

Why

  • When run_ep_decomposition=True is enabled, PyTorch decomposes adaptive_avg_pool operators into lower-level _adaptive_avg_pool*.default variants, which were not supported.

How

  • Added support for _adaptive_avg_pool1d.default, _adaptive_avg_pool2d.default, and _adaptive_avg_pool3d.default in exported_program_translator.py
  • Updated tests to use run_ep_decomposition=True including conv tests as well

@guan404ming
Copy link
Member Author

cc @tlopex

@guan404ming guan404ming marked this pull request as ready for review November 13, 2025 10:34
Copy link
Member

@tlopex tlopex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks

@tlopex tlopex merged commit 506a0bb into apache:main Nov 13, 2025
14 checks passed
@guan404ming
Copy link
Member Author

Thanks!

@guan404ming guan404ming deleted the add-decomposed-support-for-adp branch November 14, 2025 05:22
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.

2 participants