gromero commented on pull request #9289:
URL: https://github.com/apache/tvm/pull/9289#issuecomment-946183506


   @mehrdadh BTW,  I found out that the following fixes are needed in Arduino 
while reviewing your changes, but naturally your changes are independent. I'll 
submit them later today:
   
   ```commit ee29b3c94ad5d8d08d1d17017e788f9778897061 (HEAD -> u_main)
   Author: Gustavo Romero <[email protected]>
   Date:   Mon Oct 18 21:25:26 2021 +0000
   
       Fix Arduino
   
   diff --git a/apps/microtvm/arduino/template_project/microtvm_api_server.py 
b/apps/microtvm/arduino/template_project/microtvm_api_server.py
   index 3d25d0bca..85263137f 100644
   --- a/apps/microtvm/arduino/template_project/microtvm_api_server.py
   +++ b/apps/microtvm/arduino/template_project/microtvm_api_server.py
   @@ -152,7 +152,9 @@ class Handler(server.ProjectAPIHandler):
            return server.ServerInfo(
                platform_name="arduino",
                is_template=IS_TEMPLATE,
   -            model_library_format_path=MODEL_LIBRARY_FORMAT_PATH,
   +            model_library_format_path=""
   +            if IS_TEMPLATE
   +            else MODEL_LIBRARY_FORMAT_PATH,
                project_options=PROJECT_OPTIONS,
            )
    
   @@ -352,7 +354,7 @@ class Handler(server.ProjectAPIHandler):
    
            # Unpack the MLF and copy the relevant files
            metadata = self._disassemble_mlf(model_library_format_path, 
source_dir)
   -        shutil.copy2(model_library_format_path, source_dir / "model")
   +        shutil.copy2(model_library_format_path, project_dir / 
MODEL_LIBRARY_FORMAT_RELPATH)
    
            # For AOT, template model.h with metadata to minimize space usage
            if options["project_type"] == "example_project":
   ```


-- 
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