docs: 添加 ONNX 构建说明

添加了 ONNX 构建过程中可能遇到的问题及解决方法,具体包括:
- 克隆 ONNX 仓库
- 更新子模块
- 设置 CMAKE_ARGS 参数
- 使用 pip 安装
This commit is contained in:
fly6516 2025-05-29 23:08:56 +08:00
parent 86ccd7c29e
commit 28dad9e675

12
README.md Normal file
View File

@ -0,0 +1,12 @@
onnx Cannot build wheel
fix command:
```bash
git clone https://github.com/onnx/onnx.git
cd onnx
git submodule update --init --recursive
# prefer lite proto
set CMAKE_ARGS=-DONNX_USE_LITE_PROTO=ON
pip install -e .
```