Function QnnMem_deRegister

Function Documentation

Qnn_ErrorHandle_t QnnMem_deRegister(const Qnn_MemHandle_t *memHandles, uint32_t numHandles)

Deregister a memory handle which was registered via QnnMem_register and invalidates memHandle for the given backend handle.

Parameters
  • memHandles[in] Array of memory handles to be deregistered.

  • numHandles[in] Number of memory handles in the array.

Returns

Error code:

  • QNN_SUCCESS: memory was successfully de-registered

  • QNN_MEM_ERROR_NOT_SUPPORTED: backend does not support this API

  • QNN_MEM_ERROR_INVALID_ARGUMENT: memHandles is NULL

  • QNN_MEM_ERROR_INVALID_HANDLE: a handle within memHandles is NULL/invalid

Note

memHandles parameter: Upon failure, all valid handles within memHandles will still be de-registered.