24 #ifndef TVM_RELAY_QNN_ATTRS_H_ 25 #define TVM_RELAY_QNN_ATTRS_H_ 44 "The output channel axis for channel wise quantization. Default value is -1," 45 "which corresponds to the last axis.")
48 "Defines the rounding direction when the value is midway between" 49 "two representable values. There are two supported modes - UPWARD" 50 "or TONEAREST. Both modes behave exactly same except at the" 51 "midpoints between the two representable values. At the midpoint," 52 "UPWARD rounds towards positive infinity (for example -1.5 will be" 53 "rounded to -1). TONEAREST is the standard rounding where the" 54 "value is rounded away from zero at midpoints (for example, -1.5" 55 "rounds to -2). More context can be found at following gblic manual" 56 "https://www.gnu.org/software/libc/manual/html_node/Rounding.html.");
59 .describe(
"Output data type, set to explicit type under mixed precision setting");
69 TVM_ATTR_FIELD(out_dtype).describe(
"Output data type, can be one of [int8 or uint8].");
72 "The output channel axis for channel wise quantization. Default value is -1," 73 "which corresponds to the last axis.")
84 "The output channel axis for channel wise quantization. Default value is -1," 85 "which corresponds to the last axis.")
97 "The channel axis for channel wise dequantization. Default value is -1," 98 "which corresponds to the last axis.")
106 #endif // TVM_RELAY_QNN_ATTRS_H_ Performance counters for profiling via the PAPI library.
Definition: analyzer.h:36
Attribute for quantize operator.
Definition: attrs.h:64
Helpers for attribute objects.
int axis
Definition: attrs.h:79
std::string rounding
Definition: attrs.h:38
Runtime primitive data type.
Definition: data_type.h:41
Attribute for requantize operator.
Definition: attrs.h:36
Attribute for dequantize operator.
Definition: attrs.h:91
int axis
Definition: attrs.h:37
#define TVM_ATTR_FIELD(FieldName)
Declare an attribute field.
Definition: attrs.h:76
int axis
Definition: attrs.h:92
DataType out_dtype
Definition: attrs.h:65
TVM_DECLARE_ATTRS(QuantizeAttrs, "relay.attrs.QuantizeAttrs")
Definition: attrs.h:68
DataType NullValue< DataType >()
Definition: attrs.h:90
TVM_DECLARE_ATTRS(RequantizeAttrs, "relay.attrs.RequantizeAttrs")
Definition: attrs.h:41
int axis
Definition: attrs.h:66
TVM_DECLARE_ATTRS(SimulatedQuantizeAttrs, "relay.attrs.SimulatedQuantizeAttrs")
Definition: attrs.h:81
The base class of the all the Use "curiously recurring template pattern".
Definition: attrs.h:793
TVM_DECLARE_ATTRS(DequantizeAttrs, "relay.attrs.DequantizeAttrs")
Definition: attrs.h:94
DataType out_dtype
Definition: attrs.h:39