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

[TVMScript] Use TVMScript for all TIR Printing #13795

Merged

Conversation

junrushao
Copy link
Member

@junrushao junrushao commented Jan 17, 2023

This PR clarifies TVMScript is the only possible format for TIR printing
by default. To do this, the PR makes the following changes:

  • AsText and PrettyPrint are moved to Relay, so that in code, it
    stresses that they are specifically used for non-TIR usecases
  • The use of legacy behavior, for example, TIRTextPrinterDebug,
    PrettyPrint, AsText, AsLegacyRepr, are still available in both
    C++ and Python, but are discouraged in a way that one needs to include
    extra headers.
  • astext method is removed from TIR nodes, but remain available for
    Relay and others

@tvm-bot
Copy link
Collaborator

tvm-bot commented Jan 17, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • No users to tag found in teams: tvmscript See #10317 for details

Generated by tvm-bot

@junrushao junrushao force-pushed the feature/2023-01-16/tvmscript-migration branch 9 times, most recently from 5f1cf90 to 6fb1aa9 Compare January 17, 2023 22:16
@junrushao junrushao marked this pull request as ready for review January 17, 2023 22:20
@junrushao junrushao changed the title [TVMScript] Continue migrating to TVMScript format [TVMScript] Use TVMScript for all TIR Printing Jan 17, 2023
@junrushao junrushao force-pushed the feature/2023-01-16/tvmscript-migration branch 5 times, most recently from a92d783 to bc6e21b Compare January 18, 2023 05:36
This PR clarifies TVMScript is the only possible format for TIR printing
by default. To do this, the PR makes the following changes:
- `AsText` and `PrettyPrint` are moved to Relay, so that in code, it
  stresses that they are specifically used for non-TIR usecases
- The use of legacy behavior, for example, `TIRTextPrinterDebug`,
  `PrettyPrint`, `AsText`, `AsLegacyRepr`, are still available in both
  C++ and Python, but are discouraged in a way that one needs to include
  extra headers.
- `astext` method is removed from TIR nodes, but remain available for
  Relay and others
@junrushao junrushao force-pushed the feature/2023-01-16/tvmscript-migration branch from bc6e21b to 0f31975 Compare January 18, 2023 06:28
@spectrometerHBH spectrometerHBH merged commit da99e9d into apache:main Jan 18, 2023
fzi-peccia pushed a commit to fzi-peccia/tvm that referenced this pull request Mar 27, 2023
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