打造优质的 TVM 中文社区。
确保系统中安装了 cmake 以及 ninja 构建系统:
# 安装 cmake
pip install cmake -i https://pypi.tuna.tsinghua.edu.cn/simple
# 安装 ninja,作为 cmake 的 generator:
conda install -c conda-forge ninja
# 安装 C/C++ 编译器
conda install -c conda-forge clang clangdev llvmdev llvm gcc gxx
使用 pip 安装 tvm_book
:
pip install tvm-book
或者从源代码安装:
git clone https://github.com/xinetzone/tvm-book.git
cd tvm-book
pip install -ve .
构建和使用 whl 包:
pip wheel -v -w dist . # 构建 whl 包
pip install dist/*.whl # 安装 whl 包