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: [email protected]

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


Reply via email to