File QnnAipGraph.h¶
↰ Parent directory (include/QNN/AIP)
QNN AIP component Graph API.
Contents
Definition (include/QNN/AIP/QnnAipGraph.h)¶
Detailed Description¶
The interfaces in this file work with the top level QNN API and supplements QnnGraph.h for AIP backend
Includes¶
QnnGraph.h(File QnnGraph.h)
Enums¶
Full File Listing¶
QNN AIP component Graph API.
The interfaces in this file work with the top level QNN
API and supplements QnnGraph.h for AIP backend
Defines
-
QNN_AIP_GRAPH_OPTIMIZATION_OPTION_INIT { \
QNN_AIP_GRAPH_OPTIMIZATION_TYPE_UNKNOWN
, /*type*/ \
0.0f /*floatValue*/ \
}
QnnAipGraph_OptimizationOption_t initializer macro.
-
QNN_AIP_GRAPH_CUSTOM_CONFIG_INIT { \
QNN_AIP_GRAPH_CONFIG_OPTION_UNKNOWN
, /*option*/ \
{ \
QNN_AIP_GRAPH_OPTIMIZATION_OPTION_INIT/*optimizationOption*/ \
} \
}
QnnAipGraph_CustomConfig_t initializer macro.
Enums
-
enum QnnAipGraph_OptimizationType_t¶
This enum provides different DSP graph optimization options that can be used to finalize the graph for optimum performance.
Values:
-
enumerator QNN_AIP_GRAPH_OPTIMIZATION_TYPE_SCHEDULE_THRESHOLD = 1¶
-
enumerator QNN_AIP_GRAPH_OPTIMIZATION_TYPE_FINALIZE_RETRIES = 2¶
-
enumerator QNN_AIP_GRAPH_OPTIMIZATION_TYPE_FINALIZE_OPTIMIZATION_FLAG = 3¶
-
enumerator QNN_AIP_GRAPH_OPTIMIZATION_TYPE_ENABLE_DLBC = 4¶
-
enumerator QNN_AIP_GRAPH_OPTIMIZATION_TYPE_UNKNOWN = 0x7fffffff¶
-
enumerator QNN_AIP_GRAPH_OPTIMIZATION_TYPE_SCHEDULE_THRESHOLD = 1¶
-
enum QnnAipGraph_ConfigOption_t¶
This enum provides different DSP graph configuration options associated with QnnGraph.
Values:
-
enumerator QNN_AIP_GRAPH_CONFIG_OPTION_OPTIMIZATION = 1¶
-
enumerator QNN_AIP_GRAPH_CONFIG_OPTION_ENCODING = 2¶
-
enumerator QNN_AIP_GRAPH_CONFIG_OPTION_PRIORITY = 3¶
-
enumerator QNN_AIP_GRAPH_CONFIG_OPTION_PRECISION = 4¶
-
enumerator QNN_AIP_GRAPH_CONFIG_OPTION_UNKNOWN = 0x7fffffff¶
-
enumerator QNN_AIP_GRAPH_CONFIG_OPTION_OPTIMIZATION = 1¶
-
enum QnnAipGraph_Encoding_t¶
Values:
-
enumerator QNN_AIP_GRAPH_ENCODING_DYNAMIC = 1¶
-
enumerator QNN_AIP_GRAPH_ENCOING_DYNAMIC = QNN_AIP_GRAPH_ENCODING_DYNAMIC¶
-
enumerator QNN_AIP_GRAPH_ENCODING_STATIC = 2¶
-
enumerator QNN_AIP_GRAPH_ENCOING_STATIC = QNN_AIP_GRAPH_ENCODING_STATIC¶
-
enumerator QNN_AIP_GRAPH_ENCODING_UNKNOWN = 0x7fffffff¶
-
enumerator QNN_AIP_GRAPH_ENCOING_UNKNOW = QNN_AIP_GRAPH_ENCODING_UNKNOWN¶
-
enumerator QNN_AIP_GRAPH_ENCODING_DYNAMIC = 1¶
-
struct QnnAipGraph_OptimizationOption_t¶
- #include <QnnAipGraph.h>
Struct describing the set of optimization types and the values associated with each optimization type.
Below is the Map between QnnAipGraph_OptimizationType_t and allowable values:
#
OptimizationType option
Allowable values
1
QNN_AIP_GRAPH_OPTIMIZATION_TYPE_SCHEDULE_THRESHOLD
Reserved
2
QNN_AIP_GRAPH_OPTIMIZATION_TYPE_FINALIZE_RETRIES
Reserved
3
QNN_AIP_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_AIP_GRAPH_OPTIMIZATION_TYPE_ENABLE_DLBC
Reserved
-
struct QnnAipGraph_CustomConfig_t¶
- #include <QnnAipGraph.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 QnnAipGraph_ConfigOption_t and config value
#
Config Option
Configuration Struct/value
1
QNN_AIP_GRAPH_CONFIG_OPTION_OPTIMIZATION
QnnAipGraph_OptimizationOption_t
2
QNN_AIP_GRAPH_CONFIG_OPTION_ENCODING
QnnAipGraph_Encoding_t
3
QNN_AIP_GRAPH_CONFIG_OPTION_PRECISION
Qnn_Precision_t
4
QNN_AIP_GRAPH_CONFIG_OPTION_PRIORITY
Qnn_Priority_t
Public Members
-
QnnAipGraph_ConfigOption_t option¶
-
QnnAipGraph_OptimizationOption_t optimizationOption¶
-
QnnAipGraph_Encoding_t encoding¶
-
Qnn_Priority_t priority¶
-
Qnn_Precision_t precision¶
-
union QnnAipGraph_CustomConfig_t::[anonymous] [anonymous]¶
-
QnnAipGraph_ConfigOption_t option¶