Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[microTVM] Arduino: Fix MLF archive filename in generated project dir (…
…apache#9320) * [microTVM] Arduino: Fix MLF archive filename in generated project dir Currently generate_project API method is copying the input MLF archive filename without renaming it to "model.tar" - hence not in accordance with the specification. As a consequence when the server looks for that file to determine if it's a project dir or a template dir it always determines it is a template dir since "model.tar" can never be found, so a TemplateProjectError() exception is thrown when instantiating a GeneratedProject class. This commit fixes that by correctly copying the input MLF archive to the newly generated project dir as "model.tar" so the server can find it. It also takes the chance to change the MLF path returned by server_info_query method: only if it's not a template dir the MLF path is returned, otherwise an empty string is returned (it doesn't make sense to return a MLF path when it's a template dir because there isn't any model associated to a template dir). Signed-off-by: Gustavo Romero <[email protected]> * Retrigger CI
- Loading branch information