Difference between revisions of "Porting/ONNX"
Jump to navigation
Jump to search
JeremyRand (talk | contribs) (Create page) |
JeremyRand (talk | contribs) (Move to subcategory) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
strat -r debian ./build.sh --config Release --build_shared_lib --enable_pybind --build_wheel --parallel --compile_no_warning_as_error --skip_submodule_sync --build | strat -r debian ./build.sh --config Release --build_shared_lib --enable_pybind --build_wheel --parallel --compile_no_warning_as_error --skip_submodule_sync --build | ||
− | The ONNX Runtime wheel will be produced at <code>build/Linux/Release/dist/</code>; you can install it with | + | The ONNX Runtime wheel will be produced at <code>build/Linux/Release/dist/</code>; you can install it with <code>pip install</code>. |
= See Also = | = See Also = | ||
+ | * [[Porting/chaiNNer|chaiNNer]] | ||
* [[Porting/ncnn|ncnn]] | * [[Porting/ncnn|ncnn]] | ||
* [[Porting/PyTorch|PyTorch]] | * [[Porting/PyTorch|PyTorch]] | ||
− | [[Category:Ports]] | + | [[Category:Ports/AI]] |
Latest revision as of 15:41, 18 May 2025
Installation
ONNX itself is packaged in Debian Bookworm, and works fine:
sudo apt install python3-onnx
ONNX Optimizer can be installed in Debian Bookworm per its installation instructions.
ONNX Runtime can be installed in Debian Bookworm per its installation instructions. Note that if you've morphed Debian to Bedrock, you may need to restrict the build script to the Debian stratum. Python bindings are not enabled by default, and there may be some unit test issues if building the Python bindings against Debian-packaged ONNX. A fully working Python-enabled installation command for Debian+Bedrock is:
strat -r debian ./build.sh --config Release --build_shared_lib --enable_pybind --build_wheel --parallel --compile_no_warning_as_error --skip_submodule_sync --build
The ONNX Runtime wheel will be produced at build/Linux/Release/dist/
; you can install it with pip install
.