This is a fork of https://github.com/olilarkin/ort-builder specialized for NeuralNote.
For a general purpose static library builder please go to the upstream repo.
-
Create a virtual environment
$ python3 -m venv venv
-
Activate it
$ source ./venv/bin/activate
for Mac or.\venv\Scripts\activate.bat
for Windows. -
Install dependencies
$ pip install -r requirements.txt
-
Run
./convert-model-to-ort.sh model.onnx
on Mac or.\convert-model-to-ort.bat model.onnx
on Windows -
Run
./build-mac.sh model.required_operators_and_types.with_runtime_opt.config
on Mac or.\build-win.bat model.required_operators_and_types.with_runtime_opt.config
on Windows -
The following files are ready to be used by consumer:
- include/*
- lib/*
- model.with_runtime_opt.ort
- model.ort
-
OPTIONAL: they can be packaged in a tar.gz with:
./make-archive.sh v1.14.1-neuralnote.0
- cross platform build
- linux