Typedef QnnOpPackage_CreateFn_t

Typedef Documentation

typedef Qnn_ErrorHandle_t (*QnnOpPackage_CreateFn_t)(QnnOpPackage_GlobalInfrastructure_t infrastructure, QnnLog_Callback_t callback, QnnLog_Level_t maxLogLevel, Qnn_OpPackageHandle_t *opPackage)

Initialize an op package library and create an op package handle.

Param infrastructure

[in] Global infrastructure object provided by the backend for use in all operations in the package.

Param callback

[in] Callback to handle op package generated logging messages. NULL represents that logging is disabled.

Param maxLogLevel

[in] Maximum level of messages which the op package will generate.

Param opPackage

[out] The created op package handle.

Return

Error code:

  • QNN_SUCCESS: Op package was successfully created.

  • QNN_OP_PACKAGE_ERROR_UNSUPPORTED_PLATFORM: Op package attempted to be created on an unsupported platform.

  • QNN_OP_PACKAGE_ERROR_INVALID_ARGUMENT: if one or more arguments is invalid.

  • QNN_OP_PACKAGE_ERROR_INVALID_INFRASTRUCTURE: Op package initialization failed due to invalid infrastructure content.

  • QNN_OP_PACKAGE_ERROR_GENERAL: Op package library failed to initialize.