native-onnx 0.2.0

ONNX inference with system CUDA and TensorRT, reusable buffers, and explicit backend selection
Documentation
1
2
3
4
5
6
7
8
9
fn main() {
    println!("cargo:rustc-check-cfg=cfg(cuda_platform)");
    if matches!(
        std::env::var("CARGO_CFG_TARGET_OS").ok().as_deref(),
        Some("linux" | "windows")
    ) {
        println!("cargo:rustc-cfg=cuda_platform");
    }
}