Skip to content

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

@@ -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

@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