Function QnnProfile_setConfig

Function Documentation

Qnn_ErrorHandle_t QnnProfile_setConfig(Qnn_ProfileHandle_t profileHandle, const QnnProfile_Config_t **config)

A function to set/modify configuration options on an already created profile handle.

Parameters
  • profileHandle[in] A profile 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. If a backend cannot support all provided configs it will fail.

Returns

Error code:

  • QNN_SUCCESS: no error is encountered

  • QNN_PROFILE_ERROR_INVALID_HANDLE: profileHandle is not a valid handle

  • QNN_PROFILE_ERROR_INVALID_ARGUMENT: at least one config option is invalid

  • QNN_PROFILE_ERROR_HANDLE_IN_USE: when attempting to reconfigure a profile handle

  • QNN_PROFILE_ERROR_UNSUPPORTED: Config option is not supported

Note

Use corresponding API through QnnInterface_t.