Function QnnGraph_setConfig¶
Defined in File QnnGraph.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnGraph_setConfig(Qnn_GraphHandle_t graphHandle, const QnnGraph_Config_t **config)¶
A function to set/modify configuration options on an already created graph. Backends are not required to support this API.
- Parameters
graphHandle – [in] A graph 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_GRAPH_ERROR_INVALID_HANDLE: graphHandle is not a valid handle
QNN_GRAPH_ERROR_INVALID_ARGUMENT: at least one config option is invalid
QNN_GRAPH_ERROR_GRAPH_FINALIZED: at least one valid config option is not valid on a finalized graph
QNN_GRAPH_ERROR_SUBGRAPH: operation not permitted on a subgraph
QNN_GRAPH_ERROR_UNSUPPORTED_FEATURE: at least one valid config option is not supported
QNN_GRAPH_ERROR_PROFILE_IN_USE: when a profile handle is passed as graph config, that profile handle can only be bound to one graph at a time
QNN_COMMON_ERROR_SYSTEM_COMMUNICATION: SSR occurence (successful recovery)
QNN_COMMON_ERROR_SYSTEM_COMMUNICATION_FATAL: SSR occurence (unsuccessful recovery)
Note
Use corresponding API through QnnInterface_t.