This is a wrapper used to load onnxruntime dynamically to inference model.
- No c interface exposed.
- Library loader is thread-safe.
- OnnxApiWrapper is thread-safe and support multi-thread model infer.
- Dynamic library load.
- Library closed once unneeded, no more resources occupation.
-
Download:
git clone --recursive https://github.com/atp798/onnx_dynamic_load.git
-
Build or copy library named 'onnxruntime_pybind11_state.so' to one of the path in environment variable 'LD_LIBRARY_PATH'.
-
Build:
mkdir build && cd build && cmake ../ && make
-
Run sample:
./onnxruntime_dynamic_loader.out
MIT license (© 2020 ATP)