-
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
[IR] Expose list of PassContext configuration names to the Python APIs #8212
Conversation
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.
LGTM. A nit about the API name. ListAllConfigs
seems a bit confusing, as it is actually listing the config names without their values. Maybe ListConfigNames
might be better.
Makes sense, thanks @comaniac I've just renamed it. |
cc @mbaret can you also review and possibly merge? |
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.
LGTM
* Expose C++ PassContext::ListAllConfigs via its Python counterpart tvm.ir.transform.PassContext.list_configs() * Add unit tests for the C++ and Python layers
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.
Hi @leandron:
LGTM.
May I know what kind of features (next PR as you mentioned before) depend on this change?
Hi @zackcquic yes, sure. I'm working on a PR to give I'm actually going to update this PR to also be able to pass the types of the PassContext configurations, so that I can present better messages. I have the |
Thanks @leandron @mbaret @zhiics @zackcquic |
…8212) * Expose C++ PassContext::ListAllConfigs via its Python counterpart tvm.ir.transform.PassContext.list_configs() * Add unit tests for the C++ and Python layers
…8212) * Expose C++ PassContext::ListAllConfigs via its Python counterpart tvm.ir.transform.PassContext.list_configs() * Add unit tests for the C++ and Python layers
Expose list of
PassContext
configurations to the Python APIs:PassContext::ListConfigNames()
via its Python counterparttvm.ir.transform.PassContext.list_configs()
tvmc
cc @Mousius @gromero @manupa-arm @areusch for reviews