Type Definitions
The following type definitions are available globally.
-
Pointer to a custom op registration function that uses the ONNX Runtime C API.
The signature is defined in the ONNX Runtime C API: https://github.com/microsoft/onnxruntime/blob/67f4cd54fab321d83e4a75a40efeee95a6a17079/include/onnxruntime/core/session/onnxruntime_c_api.h#L697
This is a low-level type intended for interoperating with libraries which provide such a function for custom op registration, such as ONNX Runtime Extensions.
Declaration
Objective-C
typedef struct OrtStatus *(*ORTCAPIRegisterCustomOpsFnPtr)( struct OrtSessionOptions *, const struct OrtApiBase *)
Swift
typealias ORTCAPIRegisterCustomOpsFnPtr = (OpaquePointer?, OpaquePointer?) -> OpaquePointer?