Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Relax][PyTorch] Support torch.export.ExportedProgram in Relax PyTorch Frontend #17346

Closed
24 tasks done
mshr-h opened this issue Sep 8, 2024 · 2 comments
Closed
24 tasks done
Assignees

Comments

@mshr-h
Copy link
Contributor

mshr-h commented Sep 8, 2024

This is a tracking issue for supporting PyTorch's torch.export.ExportedProgram in the Relax PyTorch frontend.

TODOs:

refs:

cc @junrushao @shingjan @yelite

@mshr-h mshr-h added needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it type:rfc-tracking RFC progress tracking. Ref: https://github.com/apache/tvm-rfcs labels Sep 8, 2024
@mshr-h mshr-h changed the title [Relax][PyTorch] torch.export.ExportedProgram support [Relax][PyTorch] Support torch.export.ExportedProgram in Relax PyTorch Frontend Sep 8, 2024
@mshr-h
Copy link
Contributor Author

mshr-h commented Sep 8, 2024

This is a comparison of the number of lines of source code.

Current fx_graph_translator

$ tokei fx_translator.py 
===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 Python                  1         1947         1691           48          208
===============================================================================
 Total                   1         1947         1691           48          208
===============================================================================

New fx_graph_translator andexportedprogram_translator

$ tokei base_fx_graph_translator.py exportedprogram_translator.py fx_translator.py 
===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 Python                  3         2342         1975          113          254
===============================================================================
 Total                   3         2342         1975          113          254
===============================================================================

@mshr-h mshr-h changed the title [Relax][PyTorch] Support torch.export.ExportedProgram in Relax PyTorch Frontend [Tracking Issue][Relax][PyTorch] Support torch.export.ExportedProgram in Relax PyTorch Frontend Sep 8, 2024
@mshr-h mshr-h changed the title [Tracking Issue][Relax][PyTorch] Support torch.export.ExportedProgram in Relax PyTorch Frontend [Relax][PyTorch] Support torch.export.ExportedProgram in Relax PyTorch Frontend Sep 8, 2024
@tqchen
Copy link
Member

tqchen commented Sep 14, 2024

we can decouple TVMC support here, since the new relax flow focuses on more modular python based flow. So we can conclude as long as the importer part finishes

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

No branches or pull requests

2 participants