Difference between revisions of "Porting/ONNX"

From RCS Wiki
Jump to navigation Jump to search
(→‎Installation: Fix "pip install" typo)
(→‎See Also: chaiNNer)
 
Line 15: Line 15:
 
= See Also =
 
= See Also =
  
 +
* [[Porting/chaiNNer|chaiNNer]]
 
* [[Porting/ncnn|ncnn]]
 
* [[Porting/ncnn|ncnn]]
 
* [[Porting/PyTorch|PyTorch]]
 
* [[Porting/PyTorch|PyTorch]]
  
 
[[Category:Ports]]
 
[[Category:Ports]]

Latest revision as of 21:07, 22 June 2023

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.

See Also