24 #ifndef TVM_RELAY_QNN_ATTRS_H_
25 #define TVM_RELAY_QNN_ATTRS_H_
45 "The output channel axis for channel wise quantization. Default value is -1,"
46 "which corresponds to the last axis.")
49 "Defines the rounding direction when the value is midway between"
50 "two representable values. There are two supported modes - UPWARD"
51 "or TONEAREST. Both modes behave exactly same except at the"
52 "midpoints between the two representable values. At the midpoint,"
53 "UPWARD rounds towards positive infinity (for example -1.5 will be"
54 "rounded to -1). TONEAREST is the standard rounding where the"
55 "value is rounded away from zero at midpoints (for example, -1.5"
56 "rounds to -2). More context can be found at following gblic manual"
57 "https://www.gnu.org/software/libc/manual/html_node/Rounding.html.");
61 "Specifies the data type used during requantize. Supported "
62 "options: \"int64\", \"float32\", \"float64\"");
65 .describe(
"Output data type, set to explicit type under mixed precision setting");
78 "The output channel axis for channel wise quantization. Default value is -1,"
79 "which corresponds to the last axis.")
90 "The output channel axis for channel wise quantization. Default value is -1,"
91 "which corresponds to the last axis.")
105 "The channel axis for channel wise dequantization. Default value is -1,"
106 "which corresponds to the last axis.")
119 "The channel axis for channel wise broadcast. Default value is -1,"
120 "which corresponds to the last axis.")
124 "The channel axis for channel wise broadcast. Default value is -1,"
125 "which corresponds to the last axis.")
The base class of the all the Use "curiously recurring template pattern".
Definition: attrs.h:870
Runtime primitive data type.
Definition: data_type.h:43
Helpers for attribute objects.
#define TVM_ATTR_FIELD(FieldName)
Declare an attribute field.
Definition: attrs.h:76
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
DataType NullValue< DataType >()
Definition: attrs.h:90
Attribute for broadcast operator.
Definition: attrs.h:112
TVM_DECLARE_ATTRS(BroadcastAttrs, "relay.attrs.BroadcastAttrs")
Definition: attrs.h:116
int lhs_axis
Definition: attrs.h:113
int rhs_axis
Definition: attrs.h:114
Attribute for dequantize operator.
Definition: attrs.h:97
int axis
Definition: attrs.h:99
TVM_DECLARE_ATTRS(DequantizeAttrs, "relay.attrs.DequantizeAttrs")
Definition: attrs.h:101
DataType out_dtype
Definition: attrs.h:98
Attribute for quantize operator.
Definition: attrs.h:70
TVM_DECLARE_ATTRS(QuantizeAttrs, "relay.attrs.QuantizeAttrs")
Definition: attrs.h:74
DataType out_dtype
Definition: attrs.h:71
int axis
Definition: attrs.h:72
Attribute for requantize operator.
Definition: attrs.h:36
int axis
Definition: attrs.h:37
DataType out_dtype
Definition: attrs.h:40
std::string compute_dtype
Definition: attrs.h:39
std::string rounding
Definition: attrs.h:38
TVM_DECLARE_ATTRS(RequantizeAttrs, "relay.attrs.RequantizeAttrs")
Definition: attrs.h:42
TVM_DECLARE_ATTRS(SimulatedQuantizeAttrs, "relay.attrs.SimulatedQuantizeAttrs")
Definition: attrs.h:87
int axis
Definition: attrs.h:85