ONNX Runtime Objective-C API

ONNX Runtime provides an Objective-C API.

It can be used from Objective-C/C++ or Swift with a bridging header.

Starting in 1.31, ORTSessionOptions can register an application-side callback that supplies external EPContext data during session initialization. The Objective-C API does not currently expose model compilation, so it exposes the EPContext data read callback but not the write callback.

The required maxDataSize is an Objective-C binding policy retained in the callback registration. It is checked before allocating the native output buffer, not configured in the native API. Applications must separately bound allocations made inside their read blocks.

This documentation was generated from the ONNX Runtime source at commit 8fc9fd5.