Function QnnContext_freeBinarySectionUpdate

Function Documentation

Qnn_ErrorHandle_t QnnContext_freeBinarySectionUpdate(QnnContext_Buffer_t binarySectionUpdate, Qnn_LogHandle_t logger)

Frees memory allocated during QnnContext_getBinarySectionUpdate().

Parameters
  • binarySectionUpdate[in] A buffer retrieved from QnnContext_getBinarySectionUpdate(). The buffer pointer within this object must be non-NULL. If the pointer is non-NULL but unrecognized by the backend, an error will be returned.

  • logger[in] A handle to a logger, use NULL handle to disable logging.

Returns

Error code:

  • QNN_SUCCESS: no error is encountered

  • QNN_CONTEXT_ERROR_UNSUPPORTED_FEATURE: a feature is not supported

  • QNN_CONTEXT_ERROR_INVALID_ARGUMENT: The pointer within binarySectionUpdate is NULL or unrecognized

  • QNN_CONTEXT_ERROR_INVALID_HANDLE: logger_ is not a valid handle

  • QNN_CONTEXT_ERROR_MEM_ALLOC: an error is encountered with de-allocation of associated memory

Note

Use corresponding API through QnnInterface_t.