Function QnnSystemDlc_composeGraphs

Function Documentation

Qnn_ErrorHandle_t QnnSystemDlc_composeGraphs(QnnSystemDlc_Handle_t dlcHandle, const QnnSystemDlc_GraphConfigInfo_t **graphConfigs, const uint32_t numGraphConfigs, Qnn_BackendHandle_t backend, Qnn_ContextHandle_t context, QnnInterface_t backendInterface, QnnSystemContext_GraphInfoVersion_t graphVersion, QnnSystemContext_GraphInfo_t **graphs, uint32_t *numGraphs)

A function to compose graphs from a DLC on a particular backend, backend, through an backendInterface backendInterface. Memory allocated in graphs is owned by clients and may be released with calls to free().

Parameters
  • dlcHandle – [in] the DLC to retrieve graphs from

  • graphConfigs – [in] the graph configuration information for a particular graph

  • numGraphConfigs – [in] number of graph configurations

  • backend – [in] the backend on which to compose the graphs

  • context – [in] the context on which to compose the graphs

  • backendInterface – [in] the interface used to compose the graph.

  • graphVersion – [in] version of the graph info structure to be returned

  • graphs – [out] An array of graph information representing what was created with the backend

  • numGraphs – [out] the number of created graphs

Returns

Error code

  • QNN_SUCCESS: Successfully composed graphs

  • QNN_SYSTEM_DLC_ERROR_INVALID_ARGUMENT: Argument is NULL

  • QNN_COMMON_ERROR_MEM_ALLOC: Error encountered in allocating memory for

  • QNN_SYSTEM_DLC_ERROR_INVALID_HANDLE: Invalid Dlc handle to free

  • QNN_SYSTEM_DLC_ERROR_UNSUPPORTED_FEATURE: DLC features not supported