pub fn api() -> &'static OrtApiExpand description
Returns a reference to the global ort_sys::OrtApi object.
ยงPanics
May panic if:
- The
alternative-backendfeature is enabled andset_apiwas not yet called. - Getting the
OrtApistruct fails, due toortloading an unsupported version of ONNX Runtime. - Loading the ONNX Runtime dynamic library fails if the
load-dynamicfeature is enabled.