-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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] Printer entry point #12462
Conversation
6692151
to
2cab720
Compare
2cab720
to
37e125e
Compare
#include <tvm/node/object_path.h> | ||
|
||
namespace tvm { | ||
namespace script { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, what do you think works better, tvm::script::printer
or tvm::script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the function name is Script
, I think tvm::script::printer
is a better choice. Otherwise the purpose of this function is less clear, because it's a free function rather than a method on IR node.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it to the tvm::script::printer
Otherwise the PR looks nice to me! |
This PR: - Adds an entry point for the TVMScript Unified Printer - Adds a helper object class `RootNodeContainer` to provide an injection point for the actual printer implementation to add specialized logic on the root node to print. Tracking issue: apache#11912
This PR:
RootNodeContainer
to provide an injection point for the actual printer implementation to add specialized logic on the root node to print.This PR is in draft state because it's branched off from a pending PR #12396
Tracking issue: #11912
cc @junrushao1994 @gbonik