#onnx #bindings #neural-network

onnxruntime-sys-patch

Unsafe wrapper around Microsoft's ONNX Runtime

1 unstable release

0.0.14 Feb 11, 2022

#863 in Machine learning

MIT/Apache

1.5MB
56K SLoC

onnxruntime-sys-patch

Fixed onnxruntime-sys not being able to access GitHub in China.

Due to the interference of GitHub in China, when building onnxruntime-sys, it will display:

thread 'main' panicked at 'ERROR: Failed to download https://github.com/microsoft/onnxruntime/releases/download/v1.8.1/.....'

This crate replaces the original link and uses a mirror server to download the library files.

Usage

Add the following to the project configuration file Cargo.toml that uses onnxruntime or onnxruntime-sys:

[patch.crates-io]
onnxruntime-sys = { package = "onnxruntime-sys-patch" }

No runtime deps

~0–2MB
~29K SLoC