Function QnnBackend_getSupportedOperations

Function Documentation

Qnn_ErrorHandle_t QnnBackend_getSupportedOperations(Qnn_BackendHandle_t backend, uint32_t *numOperations, const QnnBackend_OperationName_t **operations)

Get the supported operations registered to a backend handle including built-in ops.

Parameters
  • backend[in] A backend handle. Can be NULL to obtain the built-in op package.

  • numOperations[out] Number of supported operations.

  • operations[out] Array of operation names. Memory is backend owned and de-allocated during QnnBackend_free.

Returns

Error code:

  • QNN_SUCCESS: No error encountered

  • QNN_BACKEND_ERROR_INVALID_ARGUMENT: if numOperations or operations is NULL

  • QNN_BACKEND_ERROR_INVALID_HANDLE: backend is not a valid handle

  • 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.