Difference between revisions of "Porting/ONNX"

From RCS Wiki
Jump to navigation Jump to search
(Create page)
 
(→‎See Also: chaiNNer)
 
(One intermediate revision 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 `pip`.
+
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]]

Latest revision as of 20: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