Function QnnDevice_freePlatformInfo

Function Documentation

Qnn_ErrorHandle_t QnnDevice_freePlatformInfo(Qnn_LogHandle_t logger, const QnnDevice_PlatformInfo_t *platformInfo)

A function to free the memory allocated during QnnDevice_getPlatformInfo()

Parameters
  • logger[in] A handle to the logger, use NULL handle to disable logging. QnnDevice doesn’t manage the lifecycle of logger and must be freed by using QnnLog_free().

  • platformInfo[in] Information about the platform. Memory for this information is owned and managed by QNN backend.

Returns

Error code:

  • QNN_SUCCESS: no error is encountered

  • QNN_DEVICE_ERROR_INVALID_ARGUMENT: platformInfo is NULL

  • QNN_DEVICE_ERROR_UNSUPPORTED_FEATURE: API is not supported

  • QNN_DEVICE_ERROR_MEM_ALLOC: failure in de-allocating memory for platformInfo

  • QNN_DEVICE_ERROR_INVALID_HANDLE: invalid logger

Note

This function may not be supported for offline preparation.

Note

Use corresponding API through QnnInterface_t.