Function QnnBackend_getProperty¶
Defined in File QnnBackend.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnBackend_getProperty(Qnn_BackendHandle_t backendHandle, QnnBackend_Property_t **properties)¶
A function to get a list of backend properties. Backends are not required to support this API.
- Parameters
backendHandle – [in] A backend handle.
[in/out] – properties Pointer to a null terminated array of pointers containing the properties associated with the passed backendHandle. Memory for this information is owned and managed by the client. Client needs to populate the property options being requested. If contextHandle is not recognized, the pointer properties points to is set to nullptr.
- Returns
Error code:
QNN_SUCCESS: no error is encountered
QNN_BACKEND_ERROR_INVALID_HANDLE: backendHandle is not a valid handle
QNN_BACKEND_ERROR_INVALID_ARGUMENT: properties is NULL or at least one property option is invalid
QNN_BACKEND_ERROR_NOT_SUPPORTED: at least one valid property option is not supported
Note
Use corresponding API through QnnInterface_t.