Function ort::ort

source ·
pub fn ort() -> OrtApi
Expand description

Attempts to acquire the global sys::OrtApi object.

Panics

Panics if another thread panicked while holding the API lock, or if the ONNX Runtime API could not be initialized.