File QnnLpaiBackend.h

Parent directory (include/QNN/LPAI)

QNN LPAI component Backend API.

Definition (include/QNN/LPAI/QnnLpaiBackend.h)

Detailed Description

The interfaces in this file work with the top level QNN API and supplements QnnBackend.h for LPAI backend

Includes

Full File Listing

QNN LPAI component Backend API.

   The interfaces in this file work with the top level QNN
   API and supplements QnnBackend.h for LPAI backend

Defines

QNN_LPAI_BACKEND_CUSTOM_CONFIG_INIT   {                                                                         \     QNN_LPAI_BACKEND_TARGET_ADSP,        /*lpaiTarget*/                     \     QNN_LPAI_BACKEND_HW_VERSION_DEFAULT

, /*hwVersion*/                      \

}


QnnLpaiBackend_CustomConfig_t initializer macro.

Enums

enum QnnLpaiBackend_Target_t

An enum which defines the different targets supported by LPAI compilation.

Values:

enumerator QNN_LPAI_BACKEND_TARGET_X86 = 0

LPAI model will be compiled for x86.

enumerator QNN_LPAI_BACKEND_TARGET_ARM = 1

LPAI model will be compiled for ARM.

enumerator QNN_LPAI_BACKEND_TARGET_ADSP = 2

LPAI model will be compiled for ADSP.

enumerator QNN_LPAI_BACKEND_TARGET_TENSILICA = 3

LPAI model will be compiled for TENSILICA.

enumerator QNN_LPAI_BACKEND_TARGET_UNKNOWN = 0x7fffffff

UNKNOWN enum event that must not be used.

enum QnnLpaiBackend_HwVersion_t

An enum which defines the version of LPAI Hardware.

Values:

enumerator QNN_LPAI_BACKEND_HW_VERSION_NA = 0

No LPAI HW will be used.

enumerator QNN_LPAI_BACKEND_HW_VERSION_V1 = 1

LPAI HW version v1.

enumerator QNN_LPAI_BACKEND_HW_VERSION_V2 = 2

LPAI HW version v2.

enumerator QNN_LPAI_BACKEND_HW_VERSION_V3 = 3

LPAI HW version v3.

enumerator QNN_LPAI_BACKEND_HW_VERSION_V4 = 4

LPAI HW version v4.

enumerator QNN_LPAI_BACKEND_HW_VERSION_V5 = 5

LPAI HW version v5.

enumerator QNN_LPAI_BACKEND_HW_VERSION_V6 = 6

LPAI HW version v6.

enumerator QNN_LPAI_BACKEND_HW_VERSION_DEFAULT = QNN_LPAI_BACKEND_HW_VERSION_V5

LPAI HW default version v5.

enumerator QNN_LPAI_BACKEND_HW_VERSION_UNKNOWN = 0x7fffffff

UNKNOWN enum event that must not be used.

struct QnnLpaiBackend_CustomConfig_t
#include <QnnLpaiBackend.h>

Structure describing the set of configurations supported by the backend. Objects of this type are to be referenced through QnnBackend_CustomConfig_t.

Public Members

QnnLpaiBackend_Target_t lpaiTarget
QnnLpaiBackend_HwVersion_t hwVersion