Function QnnGraph_releaseExecutionEnvironment¶
Defined in File QnnGraph.h
Function Documentation¶
-
Qnn_ErrorHandle_t QnnGraph_releaseExecutionEnvironment(Qnn_GraphHandle_t graphHandle, const QnnGraph_ExecuteEnvironment_t **envs, uint32_t envSize)¶
A function to release an execution environment prepared via QnnGraph_prepareExecutionEnvironment. If this API is not called, environments will be released automatically during QnnContext_free.
- Parameters
graphHandle – [in] Handle to the graph that the environment is being released from.
envs – [in] An array of pointers to execution environment options previously used for preparation.
envSize – [in] Size of the array pointed to by envs.
- Returns
Error code:
QNN_SUCCESS: The execution environment was successfully released.
QNN_GRAPH_ERROR_INVALID_HANDLE: graph is not a valid handle.
QNN_GRAPH_ERROR_INVALID_ARGUMENT: Invalid envs provided to be released.
QNN_GRAPH_ERROR_UNSUPPORTED_FEATURE: One or more envs options is not supported by the backend.
Note
Use corresponding API through QnnInterface_t.