Function QnnBackend_setConfig¶
Defined in File QnnBackend.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnBackend_setConfig(Qnn_BackendHandle_t backend, const QnnBackend_Config_t **config)¶
A function to set/modify configuration options on an already generated backend.
- Parameters
backend – [in] A backend handle.
config – [in] Pointer to a NULL terminated array of config option pointers. NULL is allowed and indicates no config options are provided. All config options have default value, in case not provided. If same config option type is provided multiple times, the last option value will be used.
- Returns
Error code:
QNN_SUCCESS: no error is encountered
QNN_BACKEND_ERROR_INVALID_HANDLE: backend is not a valid handle
QNN_BACKEND_ERROR_INVALID_CONFIG: at least one config option is invalid
QNN_BACKEND_ERROR_NOT_SUPPORTED: an optional feature is not supported
Note
Use corresponding API through QnnInterface_t.