Function QnnBackend_free

Function Documentation

Qnn_ErrorHandle_t QnnBackend_free(Qnn_BackendHandle_t backend)

Free all resources associated with a backend handle.

Parameters

backend[in] handle to be freed.

Returns

Error code:

  • QNN_SUCCESS: No error encountered.

  • QNN_BACKEND_ERROR_MEM_ALLOC: error related to memory deallocation

  • QNN_BACKEND_ERROR_TERMINATE_FAILED: indicates failure to free resources or failure to invalidate handles and pointers allocated by the library

  • QNN_BACKEND_ERROR_INVALID_HANDLE: backend is not a valid handle

  • QNN_COMMON_ERROR_SYSTEM_COMMUNICATION: SSR occurence (successful recovery)

  • QNN_COMMON_ERROR_SYSTEM_COMMUNICATION_FATAL: SSR occurence (unsuccessful recovery)

Note

Use corresponding API through QnnInterface_t.