Rust bindings to onnxruntime
Go to file
Basile Henry 2b0c01830d Expect the C headers in a different location
This should be compatible with a non Nix install of onnxruntime, and easily fixable in nix.
2020-07-05 23:16:07 +02:00
.github Setup onnxruntime version matrix 2020-07-05 22:32:58 +02:00
cbits Expect the C headers in a different location 2020-07-05 23:16:07 +02:00
examples Move run to bin so that the nix derivation builds it 2020-05-31 22:27:15 +01:00
nix Nixify 2020-05-31 09:14:01 +01:00
src Change the internals of OrtString for cheap &str and &Cstr conversions 2020-06-06 10:16:24 +01:00
testdata Add testdata to repo 2020-05-31 09:13:59 +01:00
.gitignore Setup cargo actions 2020-07-05 17:32:38 +02:00
build.rs Nixify 2020-05-31 09:14:01 +01:00
Cargo.lock Run the model multiple times and on multiple threads in run example 2020-05-31 20:23:00 +01:00
Cargo.toml Move run to bin so that the nix derivation builds it 2020-05-31 22:27:15 +01:00
default.nix Expect the C headers in a different location 2020-07-05 23:16:07 +02:00
LICENSE Add MIT license 2020-05-31 09:58:02 +01:00
README.md Point to standard include path in README 2020-05-31 17:22:29 +01:00

onnxruntime

This crate contains bindings to onnxruntime.

In order to build/use this crate you must either have onnxruntime installed on your system or build the onnxruntime project from source.

To build from source (Linux) do the following from the root of the repo:

./build.sh --config RelWithDebInfo --build_shared_lib --parallel
export ONNXRUNTIME_LIB_DIR=$PWD/build/Linux/RelWithDebInfo/
export ONNXRUNTIME_INCLUDE_DIR=$PWD/include
export LD_LIBRARY_PATH=$ONNXRUNTIME_LIB_DIR:$LD_LIBRARY_PATH

License

MIT License

Copyright 2020 Basile Henry, Chris Chalmers