Function QnnSaver_initialize¶
Defined in File QnnSaver.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnSaver_initialize(const QnnSaver_Config_t **config)¶
Supply the Saver backend with configuration options. This function only needs to be called if you are providing configs to Saver. If no configuration is needed, you may simply call any other QNN API to initialize the Saver.
- Parameters
config – [in] Pointer to a NULL terminated array of config option pointers. NULL is allowed and indicates no config options are provided, however this function only serves to supply configs, so it is unnecessary to call if no configuration is desired. All config options have a default value, in case not provided. If the same config option type is provided multiple times, the last option value will be used.
- Returns
Error code:
QNN_SUCCESS: No error encountered
QNN_COMMON_ERROR_INVALID_ARGUMENT: A config was supplied incorrectly
QNN_SAVER_ERROR_ALREADY_INSTANTIATED: Saver backend was already initialized
Note
There are restrictions which affect when certain configurations can be provided, refer to QnnSaver_ConfigOption_t.