File QnnHtaGraph.h

Parent directory (include/QNN/HTA)

QNN HTA component Graph API.

Definition (include/QNN/HTA/QnnHtaGraph.h)

Detailed Description

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

Includes

Full File Listing

QNN HTA component Graph API.

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

Defines

QNN_HTA_GRAPH_OPTIMIZATION_OPTION_INIT   {                                                         \     QNN_HTA_GRAPH_OPTIMIZATION_TYPE_UNKNOWN

, /*type*/       \

0.0f                                     /*floatValue*/ \

}


QnnHtaGraph_OptimizationOption_t initializer macro.

QNN_HTA_GRAPH_CUSTOM_CONFIG_INIT   {                                                                 \     QNN_HTA_GRAPH_CONFIG_OPTION_UNKNOWN

, /*option*/                 \

{                                                               \

QNN_HTA_GRAPH_OPTIMIZATION_OPTION_INIT

/*optimizationOption*/ \

}                                                               \

}


QnnHtaGraph_CustomConfig_t initalizer macro.

Typedefs

typedef enum QnnHtaGraph_OptimizationType QnnHtaGraph_OptimizationType_t

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

typedef struct QnnHtaGraph_OptimizationOption QnnHtaGraph_OptimizationOption_t
typedef enum QnnHtaGraph_ConfigOption QnnHtaGraph_ConfigOption_t

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

Enums

enum QnnHtaGraph_OptimizationType

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

Values:

enumerator QNN_HTA_GRAPH_OPTIMIZATION_TYPE_SCHEDULE_THRESHOLD = 1
enumerator QNN_HTA_GRAPH_OPTIMIZATION_TYPE_FINALIZE_RETRIES = 2
enumerator QNN_HTA_GRAPH_OPTIMIZATION_TYPE_UNKNOWN = 0x7fffffff
enum QnnHtaGraph_ConfigOption

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

Values:

enumerator QNN_HTA_GRAPH_CONFIG_OPTION_OPTIMIZATION = 1
enumerator QNN_HTA_GRAPH_CONFIG_OPTION_PRIORITY = 2
enumerator QNN_HTA_GRAPH_CONFIG_OPTION_UNKNOWN = 0x7fffffff
struct QnnHtaGraph_OptimizationOption
#include <QnnHtaGraph.h>

Public Members

QnnHtaGraph_OptimizationType_t type
float floatValue
struct QnnHtaGraph_CustomConfig_t
#include <QnnHtaGraph.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 QnnHtaGraph_ConfigOption_t and config value

#

Config Option

Configuration Struct/value

1

QNN_HTA_GRAPH_CONFIG_OPTION_OPTIMIZATION

QnnHtaGraph_OptimizationOption_t

2

QNN_HTA_GRAPH_CONFIG_OPTION_PRIORITY

Qnn_Priority_t

Public Members

QnnHtaGraph_ConfigOption_t option
QnnHtaGraph_OptimizationOption_t optimizationOption
Qnn_Priority_t priority
union QnnHtaGraph_CustomConfig_t::[anonymous] [anonymous]