[IR] Expose list of PassContext configuration names to the Python APIs#8212
Conversation
comaniac
left a comment
There was a problem hiding this comment.
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? |
* Expose C++ PassContext::ListAllConfigs via its Python counterpart tvm.ir.transform.PassContext.list_configs() * Add unit tests for the C++ and Python layers
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
PassContextconfigurations to the Python APIs:PassContext::ListConfigNames()via its Python counterparttvm.ir.transform.PassContext.list_configs()tvmccc @Mousius @gromero @manupa-arm @areusch for reviews