Skip to content

Conversation

Deivanayaki-S
Copy link
Contributor

This PR adds support for adaptive_avg_pool1d and adaptive_avg_pool3d operations, extending the existing adaptive_avg_pool2d functionality to handle 1D and 3D pooling. It includes the necessary mappings, and comprehensive tests for these new operations. Additionally, adaptive avgpool2d was refactored to match the result of pytorch implementation. By adding this support, the following models are now able to run successfully.

  1. X3D
  2. 3D ResNet
  3. DGurgurov/im2latex
  4. microsoft/swin-tiny-patch4-window7-224
  5. jonathandinu/face-parsing

@Deivanayaki-S Deivanayaki-S marked this pull request as ready for review May 7, 2025 10:06
@Deivanayaki-S
Copy link
Contributor Author

@tlopex Could you please review this pr?

@tlopex tlopex self-assigned this May 9, 2025
Copy link
Contributor

@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 bc896a5 into apache:main May 9, 2025
12 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
…ed Program and FX graph (apache#17922)

* add mappings for adap avgpool 1d and 3d op and its test script

* fix lint issues

* add egde case handling in fx translator and fix test scripts

* remove line space to fix the lint issue

* fix test script issues

---------

Co-authored-by: deivanayakisankaralingam <deiva@Deivanayaki>
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