File QnnDspGraph.h

Parent directory (include/QNN/DSP)

QNN DSP component Graph API.

Definition (include/QNN/DSP/QnnDspGraph.h)

Detailed Description

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

Includes

Full File Listing

QNN DSP component Graph API.

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

Defines

QNN_DSP_GRAPH_OPTIMIZATION_OPTION_INIT   {                                                         \     QNN_DSP_GRAPH_OPTIMIZATION_TYPE_UNKNOWN

, /*type*/       \

0.0f                                     /*floatValue*/ \

}


QnnDspGraph_OptimizationOption_t initializer macro.

QNN_DSP_GRAPH_CUSTOM_CONFIG_INIT   {                                                                 \     QNN_DSP_GRAPH_CONFIG_OPTION_UNKNOWN

, /*option*/                 \

{                                                               \

QNN_DSP_GRAPH_OPTIMIZATION_OPTION_INIT

/*optimizationOption*/ \

}                                                               \

}


QnnDspGraph_CustomConfig_t initializer macro.

Enums

enum QnnDspGraph_OptimizationType_t

This enum provides different DSP graph optimization options that can be used to finalize the graph for optimum performance.

Values:

enumerator QNN_DSP_GRAPH_OPTIMIZATION_TYPE_SCHEDULE_THRESHOLD = 1
enumerator QNN_DSP_GRAPH_OPTIMIZATION_TYPE_FINALIZE_RETRIES = 2
enumerator QNN_DSP_GRAPH_OPTIMIZATION_TYPE_FINALIZE_OPTIMIZATION_FLAG = 3
enumerator QNN_DSP_GRAPH_OPTIMIZATION_TYPE_ENABLE_DLBC = 4
enumerator QNN_DSP_GRAPH_OPTIMIZATION_TYPE_UNKNOWN = 0x7fffffff
enum QnnDspGraph_ConfigOption_t

This enum provides different DSP graph configuration options associated with QnnGraph.

Values:

enumerator QNN_DSP_GRAPH_CONFIG_OPTION_OPTIMIZATION = 1
enumerator QNN_DSP_GRAPH_CONFIG_OPTION_ENCODING = 2
enumerator QNN_DSP_GRAPH_CONFIG_OPTION_PRIORITY = 3
enumerator QNN_DSP_GRAPH_CONFIG_OPTION_PRECISION = 4
enumerator QNN_DSP_GRAPH_CONFIG_OPTION_UNKNOWN = 0x7fffffff
enum QnnDspGraph_Encoding_t

Values:

enumerator QNN_DSP_GRAPH_ENCODING_DYNAMIC = 1
enumerator QNN_DSP_GRAPH_ENCOING_DYNAMIC = QNN_DSP_GRAPH_ENCODING_DYNAMIC

Deprecated:

enumerator QNN_DSP_GRAPH_ENCODING_STATIC = 2
enumerator QNN_DSP_GRAPH_ENCOING_STATIC = QNN_DSP_GRAPH_ENCODING_STATIC

Deprecated:

enumerator QNN_DSP_GRAPH_ENCODING_UNKNOWN = 0x7fffffff
enumerator QNN_DSP_GRAPH_ENCOING_UNKNOW = QNN_DSP_GRAPH_ENCODING_UNKNOWN

Deprecated:

struct QnnDspGraph_OptimizationOption_t
#include <QnnDspGraph.h>

Struct describing the set of optimization types and the values associated with each optimization type.

Below is the Map between QnnDspGraph_OptimizationType_t and allowable values:

#

OptimizationType option

Allowable values

1

QNN_DSP_GRAPH_OPTIMIZATION_TYPE_SCHEDULE_THRESHOLD

Reserved

2

QNN_DSP_GRAPH_OPTIMIZATION_TYPE_FINALIZE_RETRIES

Reserved

3

QNN_DSP_GRAPH_OPTIMIZATION_TYPE_FINALIZE_OPTIMIZATION_FLAG

Defines the optimization strategy used by the HTP backend

1 = Faster preparation time, less optimal graph

2 = More optimal graph but may take longer to prepare

4

QNN_DSP_GRAPH_OPTIMIZATION_TYPE_ENABLE_DLBC

Reserved

Public Members

QnnDspGraph_OptimizationType_t type
float floatValue
struct QnnDspGraph_CustomConfig_t
#include <QnnDspGraph.h>

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

The struct has two fields - option and a union of corresponding config values Based on the option corresponding item in the union can be used to specify config.

Below is the Map between QnnDspGraph_ConfigOption_t and config value

#

Config Option

Configuration Struct/value

1

QNN_DSP_GRAPH_CONFIG_OPTION_OPTIMIZATION

QnnDspGraph_OptimizationOption_t

2

QNN_DSP_GRAPH_CONFIG_OPTION_ENCODING

QnnDspGraph_Encoding_t

3

QNN_DSP_GRAPH_CONFIG_OPTION_PRECISION

Qnn_Precision_t

4

QNN_DSP_GRAPH_CONFIG_OPTION_PRIORITY

Qnn_Priority_t

Public Members

QnnDspGraph_ConfigOption_t option
QnnDspGraph_OptimizationOption_t optimizationOption
QnnDspGraph_Encoding_t encoding
Qnn_Priority_t priority
Qnn_Precision_t precision
union QnnDspGraph_CustomConfig_t::[anonymous] [anonymous]