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? -
A block that supplies application-managed external EPContext data.
Available since 1.31.
The block may be called concurrently from arbitrary ONNX Runtime threads and must be thread-safe.
Declaration
Objective-C
typedef NSData *_Nullable (^ORTEpContextDataReadBlock)( NSString *_Nonnull, NSError *_Nullable *_Nullable)Swift
typealias ORTEpContextDataReadBlock = (String, NSErrorPointer) -> Data?Parameters
nameThe logical name of the requested EPContext data.
errorError information to set when returning nil.
Return Value
The requested data. Zero-length data is a successful empty payload. Return nil only on failure and set error.
View on GitHub
Type Definitions Reference