leandron commented on pull request #8944: URL: https://github.com/apache/tvm/pull/8944#issuecomment-914260578
> @areusch In general would an user (tvmc) import `tvm.micro.project_api` or import `tvm.micro.project` in order to create a new project using the Project API? I'm assuming the later form would be used. @leandron for the tvmc + micro targets work I'm doing https://github.com/gromero/tvm/blob/tvmc_micro_rb4/python/tvm/driver/tvmc/micro.py#L6 (`project` is already included in `__init__.py` of `micro` module) but you probably want it for a different use case? When using it from a packaged `tvm`, i.e. `tlcpack`... this is a very small reproducer, that explains the need for this to be a module: ``` >>> from tvm.micro import export_model_library_format Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/a/lib/python3.6/site-packages/tvm/micro/__init__.py", line 21, in <module> from .project import generate_project, GeneratedProject, TemplateProject File "/a/lib/python3.6/site-packages/tvm/micro/project.py", line 27, in <module> from .project_api import client ModuleNotFoundError: No module named 'tvm.micro.project_api' >>> ``` -- 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]
