Function QnnSignal_setConfig¶
Defined in File QnnSignal.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnSignal_setConfig(Qnn_SignalHandle_t signal, const QnnSignal_Config_t **config)¶
Set/change a configuration on an existing signal.
- Parameters
signal – [in] Signal object whose configuration needs to be set
config – [in] Pointer to a NULL terminated array of config option pointers. NULL is allowed and may be used to reset any previously set configuration. No default values are assumed for config options that are not set. If same config option type is provided multiple times, the last option value will be used. If a backend cannot support all provided configs it will fail.
- Returns
Error Code:
QNN_SUCCESS: if the config is set successfully
QNN_SIGNAL_ERROR_INVALID_HANDLE: signal handle is null or invalid
QNN_SIGNAL_ERROR_INVALID_ARGUMENT: one or more config values is invalid
QNN_SIGNAL_ERROR_SIGNAL_IN_USE: when attempting to reconfigure a signal that is active and in-use.
QNN_SIGNAL_ERROR_UNSUPPORTED: if QnnSignal API is not supported on the backend