Function QnnContext_getProperty

Function Documentation

Qnn_ErrorHandle_t QnnContext_getProperty(Qnn_ContextHandle_t contextHandle, QnnContext_Property_t **properties)

A function to get a list of context properties. Backends are not required to support this API.

Parameters
  • contextHandle[in] A context handle.

  • [in/out] – properties Pointer to a null terminated array of pointers containing the properties associated with the passed contextHandle. Memory for this information is owned and managed by the client. Client needs to populate the property options being requested. If contextHandle is not recognized, the pointer properties points to is set to nullptr.

Returns

Error code:

  • QNN_SUCCESS: no error is encountered

  • QNN_CONTEXT_ERROR_INVALID_HANDLE: contextHandle is not a valid handle

  • QNN_CONTEXT_ERROR_INVALID_ARGUMENT: properties is NULL or at least one property option is invalid

  • QNN_CONTEXT_ERROR_UNSUPPORTED_FEATURE: at least one valid property option is not supported

Note

Use corresponding API through QnnInterface_t.