gromero opened a new pull request #8950:
URL: https://github.com/apache/tvm/pull/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 is refers to the "zephyr_board" option.
   
   Signed-off-by: Gustavo Romero <[email protected]>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to