Skip to content

[Relax] Refactor missing op check into shared utility for Torch frontends#17840

Merged
mshr-h merged 3 commits intoapache:mainfrom
Deivanayaki-S:refactor_missing_op_reporting
Apr 16, 2025
Merged

[Relax] Refactor missing op check into shared utility for Torch frontends#17840
mshr-h merged 3 commits intoapache:mainfrom
Deivanayaki-S:refactor_missing_op_reporting

Conversation

@Deivanayaki-S
Copy link
Contributor

This PR refactors the logic for detecting unsupported ops by moving _check_unsupported_func_type into a shared utility in base_fx_graph_translator.py file. Previously, this logic was implemented separately in both from_fx and from_exported_program. By centralizing this function, we reduce duplication and ensure consistent missing op reporting across Torch frontends.

@Deivanayaki-S Deivanayaki-S marked this pull request as ready for review April 15, 2025 11:05
@mshr-h
Copy link
Contributor

mshr-h commented Apr 16, 2025

LGTM! Thanks for the tidy up!

@mshr-h mshr-h merged commit fcb8853 into apache:main Apr 16, 2025
10 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
…ends (apache#17840)

* combine missing op logic of export and fx graph into common utilities

* move func call above builder and fix lint issue

* add type hint for nodes in helper function

---------

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.

3 participants