You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/09/23 13:26:13 UTC
[GitHub] [tvm] Mousius commented on a change in pull request #9090: [microTVM] Add wrapper for creating project using a MLF
Mousius commented on a change in pull request #9090:
URL: https://github.com/apache/tvm/pull/9090#discussion_r714794053
##########
File path: python/tvm/micro/project.py
##########
@@ -154,3 +154,36 @@ def generate_project(
"""
template = TemplateProject.from_directory(str(template_project_dir))
return template.generate_project(module, str(generated_project_dir), options)
+
+
+def generate_project_from_mlf(
+ template_project_dir: typing.Union[pathlib.Path, str],
+ project_dir: typing.Union[pathlib.Path, str],
+ mlf: typing.Union[pathlib.Path, str],
+ options: dict,
+):
+ """Generate a project from a platform template and an existing MLF.
Review comment:
```suggestion
"""Generate a project from a platform template and an existing Model Library Format (MLF) archive.
```
##########
File path: python/tvm/micro/project.py
##########
@@ -154,3 +154,36 @@ def generate_project(
"""
template = TemplateProject.from_directory(str(template_project_dir))
return template.generate_project(module, str(generated_project_dir), options)
+
+
+def generate_project_from_mlf(
+ template_project_dir: typing.Union[pathlib.Path, str],
+ project_dir: typing.Union[pathlib.Path, str],
+ mlf: typing.Union[pathlib.Path, str],
+ options: dict,
+):
+ """Generate a project from a platform template and an existing MLF.
+
+ Parameters
+ ----------
+ template_project_path : pathlib.Path or str
+ Path to a template project containing a microTVM Project API server.
+
+ project_dir : pathlib.Path or str
+ Path to a directory where the project will be created.
+
+ mlf : pathlib.Path or str
Review comment:
```suggestion
mlf_path : pathlib.Path or str
```
##########
File path: python/tvm/micro/project.py
##########
@@ -154,3 +154,36 @@ def generate_project(
"""
template = TemplateProject.from_directory(str(template_project_dir))
return template.generate_project(module, str(generated_project_dir), options)
+
+
+def generate_project_from_mlf(
+ template_project_dir: typing.Union[pathlib.Path, str],
+ project_dir: typing.Union[pathlib.Path, str],
+ mlf: typing.Union[pathlib.Path, str],
Review comment:
```suggestion
mlf_path: typing.Union[pathlib.Path, str],
```
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org