Skip to content

Commit

Permalink
add download step in tvm tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
scgan committed Jul 31, 2023
1 parent 3cea5a3 commit b6783ae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 7 additions & 1 deletion docs/en/tutorials/deploying-models-through-tvm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ You can use the :project_file:`tools/tvm/requirements.txt` file to install the r
Set TVM Package Path
~~~~~~~~~~~~~~~~~~~~~

You can set the PYTHONPATH environment variable to specify the location of the TVM library. To achieve this, run the following command in the terminal, or add the following line to the ``~/.bashrc`` file.
You can use the :project_file:`tools/tvm/download.sh` file to download the compiled TVM packages:

.. code:: none
. ./download.sh
The TVM package will be downloaded to ``esp-dl/tvm/python/tvm``. After finish downloading, you can set the PYTHONPATH environment variable to specify the location of the TVM library. To achieve this, run the following command in the terminal, or add the following line to the ``~/.bashrc`` file.

.. code:: python
Expand Down
12 changes: 9 additions & 3 deletions docs/zh_CN/tutorials/deploying-models-through-tvm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,16 @@ ESP-DL 是适配 ESP 系列芯片的深度学习推理框架。本库无法完
pip install -r requirements.txt
设置 TVM 包的路径
~~~~~~~~~~~~~~~~~~~~
配置 TVM 包
~~~~~~~~~~~~~~~~~~

您可以使用 :project_file:`tools/tvm/download.sh` 来下载我们已经编译好的 TVM 包:

.. code:: none
. ./download.sh
设置环境变量 PYTHONPATH,指定 TVM 库的位置。可以在终端运行以下命令,也可以在 ``~/.bashrc`` 文件中添加以下行。
TVM 包将被下载到 ``esp-dl/tvm/python/tvm`` 中. 下载完包后,需要设置环境变量 PYTHONPATH,指定 TVM 库的位置。可以在终端运行以下命令,也可以在 ``~/.bashrc`` 文件中添加以下行。

.. code:: python
Expand Down

0 comments on commit b6783ae

Please sign in to comment.