Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[microTVM] Add method to query template info without creating a proje…
…ct (apache#8950) Add info() method to TemplateProject class so it's possible to query all available options for a given template project without creating a new one. This is necessary because TVMC will query the available options for a given template project to show them to the user so the user can use them to finally create a new project dir. That is also useful in general to query the available options for any project type. For example, one can query all boards available on the Zephyr platform with: import tvm.micro.project as project_api template = project_api.TemplateProject.from_directory(ZEPHYR_TEMPLATE_DIR) boards = template.info()["project_options"][8]["choices"] where 8 element refers to the "zephyr_board" option. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
- Loading branch information