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] Refactor IRDocsifier #13593

Merged
merged 1 commit into from
Jan 8, 2023
Merged

[TVMScript] Refactor IRDocsifier #13593

merged 1 commit into from
Jan 8, 2023

Conversation

junrushao
Copy link
Member

@junrushao junrushao commented Dec 11, 2022

This PR refactors the TVMScript printer and includes the following
changes:

  • Consolidate the logics of VarTable into IRDocsifier
  • Decouple TracedObject into Object and ObjectPath for less syntactic
    noise
  • Restructure the folder to ensure logics and consistency

Some tests removed because the APIs do not exist any more due to the
consolidation.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Dec 11, 2022

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 ir-printer branch 11 times, most recently from e853a5e to c0383d2 Compare January 7, 2023 00:11
@junrushao junrushao changed the title [WIP][TVMScript] Refactor IRDocsifier [TVMScript] Refactor IRDocsifier Jan 7, 2023
@junrushao junrushao marked this pull request as ready for review January 7, 2023 02:38
Copy link
Member

@Hzfengsy Hzfengsy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM

include/tvm/script/printer/printer.h Show resolved Hide resolved
@@ -294,7 +295,11 @@ void PythonDocPrinter::PrintTypedDoc(const LiteralDoc& doc) {
} else if (const auto* float_imm = value.as<FloatImmNode>()) {
// TODO(yelite): Make float number printing roundtrippable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if this TODO is resolved?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet but indeed there is a way forward

tests/scripts/task_mypy.sh Outdated Show resolved Hide resolved
@junrushao junrushao force-pushed the ir-printer branch 2 times, most recently from 8611e47 to 9f99c6d Compare January 8, 2023 00:49
This PR refactors the TVMScript printer and includes the following
changes:
- Consolidate the logics of VarTable into IRDocsifier
- Decouple TracedObject into Object and ObjectPath for less syntactic
  noise
- Restructure the folder to ensure logics and consistency

Some tests removed because the APIs do not exist any more due to the
consolidation.
@tqchen tqchen merged commit a99f0c1 into apache:main Jan 8, 2023
@tqchen
Copy link
Member

tqchen commented Jan 8, 2023

Thanks @junrushao @Hzfengsy !

@junrushao junrushao deleted the ir-printer branch January 9, 2023 18:11
fzi-peccia pushed a commit to fzi-peccia/tvm that referenced this pull request Mar 27, 2023
This PR refactors the TVMScript printer and includes the following
changes:
- Consolidate the logics of VarTable into IRDocsifier
- Decouple TracedObject into Object and ObjectPath for less syntactic
  noise
- Restructure the folder to ensure logics and consistency

Some tests removed because the APIs do not exist any more due to the
consolidation.
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.

4 participants