Rust bindings to onnxruntime
2b0c01830d
This should be compatible with a non Nix install of onnxruntime, and easily fixable in nix. |
||
---|---|---|
.github | ||
cbits | ||
examples | ||
nix | ||
src | ||
testdata | ||
.gitignore | ||
build.rs | ||
Cargo.lock | ||
Cargo.toml | ||
default.nix | ||
LICENSE | ||
README.md |
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
Copyright 2020 Basile Henry, Chris Chalmers