[TVMScript] Introduce PrinterConfig#13831
Conversation
|
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.
Generated by tvm-bot |
f739f02 to
d56de23
Compare
f04cd31 to
1ceebbc
Compare
This PR introduces `PrinterConfig`, a systematic way to configure TVMScript printer without having to set global flags. This PR enables more customization of printer behavior. More specifically, now any TVM’s object in python, as long as it inherits from `Scriptable`, it automatically gains two methods: - `.script(tir_prefix=...)` - `.show(...)`
1ceebbc to
8b55178
Compare
|
@junrushao was this meant for |
|
Thanks for getting to this thread. I think the particular set of changes won;'t cause technical debt that breaks the any code in the current mainline But if there is a strong desire to remove(which i think is a nit TBH), we can do a followup PR. |
This PR introduces `PrinterConfig`, a systematic way to configure TVMScript printer without having to set global flags. This PR enables more customization of printer behavior. More specifically, now any TVM’s object in python, as long as it inherits from `Scriptable`, it automatically gains two methods: - `.script(tir_prefix=...)` - `.show(...)`
This PR introduces
PrinterConfig, a systematic way to configureTVMScript printer without having to set global flags.
This PR enables more customization of printer behavior. More
specifically, now any TVM’s object in python, as long as it
inherits from
Scriptable, it automatically gains two methods:.script(tir_prefix=...).show(...)