You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ar...@apache.org on 2021/04/01 16:00:28 UTC

[tvm] branch main updated: [microTVM] Fix RVM onnx dependency and Zephyr document update (#7774)

This is an automated email from the ASF dual-hosted git repository.

areusch pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new f8c44e2  [microTVM] Fix RVM onnx dependency and Zephyr document update (#7774)
f8c44e2 is described below

commit f8c44e2bb563630df37aff8ab18c7f3f4d4a1c67
Author: Mehrdad Hessar <mh...@octoml.ai>
AuthorDate: Thu Apr 1 09:00:06 2021 -0700

    [microTVM] Fix RVM onnx dependency and Zephyr document update (#7774)
    
    * fixing poetry
    
    * fix onnx issue
    
    * add zephyr README
    
    * Update README.md
    
    * clean up
    
    * moved onnx
    
    * replace with poetry
    
    * add tflie
---
 apps/microtvm/reference-vm/zephyr/README.md | 31 +++++++++++++++++++++++++++++
 apps/microtvm/reference-vm/zephyr/setup.sh  |  4 ++++
 2 files changed, 35 insertions(+)

diff --git a/apps/microtvm/reference-vm/zephyr/README.md b/apps/microtvm/reference-vm/zephyr/README.md
new file mode 100644
index 0000000..7dd1ca6
--- /dev/null
+++ b/apps/microtvm/reference-vm/zephyr/README.md
@@ -0,0 +1,31 @@
+<!--- Licensed to the Apache Software Foundation (ASF) under one -->
+<!--- or more contributor license agreements.  See the NOTICE file -->
+<!--- distributed with this work for additional information -->
+<!--- regarding copyright ownership.  The ASF licenses this file -->
+<!--- to you under the Apache License, Version 2.0 (the -->
+<!--- "License"); you may not use this file except in compliance -->
+<!--- with the License.  You may obtain a copy of the License at -->
+
+<!---   http://www.apache.org/licenses/LICENSE-2.0 -->
+
+<!--- Unless required by applicable law or agreed to in writing, -->
+<!--- software distributed under the License is distributed on an -->
+<!--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -->
+<!--- KIND, either express or implied.  See the License for the -->
+<!--- specific language governing permissions and limitations -->
+<!--- under the License. -->
+
+# microTVM Zephyr Reference Virtual Machine
+
+This directory contains setup files for Zephyr virtual machine used for testing microTVM platforms
+that are supported by [Zephyr Project](https://zephyrproject.org/).
+
+## VM Information for Developers
+Zephyr VM is published under [tlcpack/microtvm-zephyr](https://app.vagrantup.com/tlcpack/boxes/microtvm-zephyr).
+Here is a list of different release versions and their tools.
+
+### [v0.0.4](https://app.vagrantup.com/tlcpack/boxes/microtvm-zephyr/versions/0.0.4)
+
+- Zephyr [version 2.4.0]
+- Zephyr SDK [version 0.11.3]
+- nRFjProg [version 10.9.0]
diff --git a/apps/microtvm/reference-vm/zephyr/setup.sh b/apps/microtvm/reference-vm/zephyr/setup.sh
index 053e41e..e0f382c 100644
--- a/apps/microtvm/reference-vm/zephyr/setup.sh
+++ b/apps/microtvm/reference-vm/zephyr/setup.sh
@@ -30,6 +30,10 @@ poetry env use 3.6
 # NOTE: due to https://github.com/python-poetry/poetry/issues/2247, download torch here.
 poetry run pip3 install torch==1.4.0 torchvision==0.5.0
 
+# importers
+poetry install -E importer-onnx
+poetry install -E importer-tflite
+
 echo "------------------------------[ TVM Message ]------------------------------"
 echo "WARNING: running 'poetry lock', which could take several minutes (depending"
 echo "on your network connection and the state of PyPI) as dependencies are"