Typedef Qnn_ContextBinaryRawDataProviderFn_t¶
Defined in File QnnContext.h
Typedef Documentation¶
-
typedef Qnn_ErrorHandle_t (*Qnn_ContextBinaryRawDataProviderFn_t)(Qnn_ContextBinaryDataRequest_t req, Qnn_ContextBinaryRawDataResponse_t *rawDataResponse, void *notifyParam)¶
A client-defined callback function to provide context binary data in a raw buffer. This callback is used for allocating external raw buffers and loading data.
- Param req
[in] A structure containing the request for context binary data.
- Param rawDataResponse
[out] A structure to be filled with the response to the request.
- Param notifyParam
[in] Client-supplied data object which may be used to identify which context’s instance this callback applies to.
- Return
Error code:
QNN_SUCCESS: no error is encountered
QNN_CONTEXT_ERROR_MEM_ALLOC: memory allocation error
QNN_CONTEXT_ERROR_INVALID_ARGUMENT: one of the arguments to the API is invalid/NULL