Skip to content

Conversation

@Deivanayaki-S
Copy link
Contributor

This PR adds support for the meshgrid operation in exported program and fx graph translator torch frontend. By adding this support, the following models are now able to run successfully:

Model Type Model
Image Classification microsoft/beit-base-patch16-224-pt22k-ft22k
Image Segmentation facebook/mask2former-swin-tiny-coco-instance
Depth Estimation Intel/dpt-beit-large-512

@Deivanayaki-S Deivanayaki-S marked this pull request as ready for review May 6, 2025 08:21
@Deivanayaki-S
Copy link
Contributor Author

@Hzfengsy Could you please review this PR

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 fa26a05 into apache:main May 6, 2025
12 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
…graph (apache#17904)

* add torch.meshgrid op support into torch frontends

* remove trailing whitespaces

* fix lint issues

* fix space issue in test script

* fix func definition issue

* set relax var shape to fix the unity issue

* fix format issue in input declaration

* fix lint issue

* fix cpp lints

* ix cpp lint issue in manipulate file

* fix wrong input in struct info test script

* add one more mapping for meshgrid in exported program

---------

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