From 28dad9e67517512c8c128e339fa9f3a91ae3a3d0 Mon Sep 17 00:00:00 2001 From: fly6516 Date: Thu, 29 May 2025 23:08:56 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=20ONNX=20=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加了 ONNX 构建过程中可能遇到的问题及解决方法,具体包括: - 克隆 ONNX 仓库 - 更新子模块 - 设置 CMAKE_ARGS 参数 - 使用 pip 安装 --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..4dfb7c0 --- /dev/null +++ b/README.md @@ -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 . +``` \ No newline at end of file