gromero opened a new pull request #9320: URL: https://github.com/apache/tvm/pull/9320
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 <gustavo.rom...@linaro.org> Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from [Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers) by @ them in the pull request thread. -- 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-unsubscr...@tvm.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org