Function QnnDevice_setConfig¶
Defined in File QnnDevice.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnDevice_setConfig(Qnn_DeviceHandle_t device, const QnnDevice_Config_t **config)¶
A function to set/modify configuration options on an already created device. Backends are not required to support this API.
- Parameters
device – [in] A device 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_DEVICE_ERROR_INVALID_HANDLE: device is not a valid handle
QNN_DEVICE_ERROR_INVALID_ARGUMENT: at least one argument is invalid
QNN_DEVICE_ERROR_INVALID_CONFIG: one or more configuration values is invalid
QNN_DEVICE_ERROR_UNSUPPORTED_FEATURE: API is not supported
QNN_DEVICE_ERROR_ASSOCIATED_TO_CONTEXT: device has associated contexts. Free the associations before attempting to change the config.
Note
Use corresponding API through QnnInterface_t.