File tree Expand file tree Collapse file tree 4 files changed +7
-17
lines changed
gallery/how_to/work_with_microtvm Expand file tree Collapse file tree 4 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -33,3 +33,7 @@ Install CMSIS-NN
3333 wget ${CMSIS_URL} -O " ${DOWNLOAD_PATH} "
3434 tar -xf " ${DOWNLOAD_PATH} " -C ${CMSIS_PATH} --strip-components=1
3535 rm ${DOWNLOAD_PATH}
36+
37+ CMSIS_NN_TAG=" v4.0.0"
38+ CMSIS_NN_URL=" https://github.com/ARM-software/CMSIS-NN.git"
39+ git clone ${CMSIS_NN_URL} --branch ${CMSIS_NN_TAG} --single-branch ${CMSIS_PATH} /CMSIS-NN
Original file line number Diff line number Diff line change 4646# By default, this tutorial runs on x86 CPU using TVM's C runtime. If you would like
4747# to run on real Zephyr hardware, you must export the `TVM_MICRO_USE_HW` environment
4848# variable. Otherwise (if you are using the C runtime), you can skip installing
49- # Zephyr and CMSIS-NN . It takes ~20 minutes to install both of them .
49+ # Zephyr. It takes ~20 minutes to install Zephyr .
5050use_physical_hw = bool (os .getenv ("TVM_MICRO_USE_HW" ))
5151
5252######################################################################
5353#
5454# .. include:: ../../../../gallery/how_to/work_with_microtvm/install_zephyr.rst
5555#
5656
57- ######################################################################
58- #
59- # .. include:: ../../../../gallery/how_to/work_with_microtvm/install_cmsis.rst
60- #
61-
6257######################################################################
6358# Import Python dependencies
6459# -------------------------------
Original file line number Diff line number Diff line change 3838testing .utils .install_request_hook (depth = 3 )
3939# sphinx_gallery_end_ignore
4040
41- # You can skip the following two sections (installing Zephyr and CMSIS-NN ) if the following flag is False.
41+ # You can skip the following section (installing Zephyr) if the following flag is False.
4242# Installing Zephyr takes ~20 min.
4343import os
4444
4949# .. include:: ../../../../gallery/how_to/work_with_microtvm/install_zephyr.rst
5050#
5151
52- ######################################################################
53- #
54- # .. include:: ../../../../gallery/how_to/work_with_microtvm/install_cmsis.rst
55- #
5652
5753######################################################################
5854# Import Python dependencies
Original file line number Diff line number Diff line change 4141# By default, this tutorial runs on x86 CPU using TVM's C runtime. If you would like
4242# to run on real Zephyr hardware, you must export the `TVM_MICRO_USE_HW` environment
4343# variable. Otherwise (if you are using the C runtime), you can skip installing
44- # Zephyr and CMSIS-NN . It takes ~20 minutes to install both of them .
44+ # Zephyr. It takes ~20 minutes to install Zephyr .
4545use_physical_hw = bool (os .getenv ("TVM_MICRO_USE_HW" ))
4646
4747######################################################################
4848#
4949# .. include:: ../../../../gallery/how_to/work_with_microtvm/install_zephyr.rst
5050#
5151
52- ######################################################################
53- #
54- # .. include:: ../../../../gallery/how_to/work_with_microtvm/install_cmsis.rst
55- #
56-
5752######################################################################
5853# Import Python dependencies
5954# -------------------------------
You can’t perform that action at this time.
0 commit comments