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");
75 TVM_ATTR_FIELD(out_dtype).describe(
"Output data type, can be one of [int8 or uint8].");
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.")
103 "The channel axis for channel wise dequantization. Default value is -1," 104 "which corresponds to the last axis.")
117 "The channel axis for channel wise broadcast. Default value is -1," 118 "which corresponds to the last axis.")
122 "The channel axis for channel wise broadcast. Default value is -1," 123 "which corresponds to the last axis.")
131 #endif // TVM_RELAY_QNN_ATTRS_H_ int lhs_axis
Definition: attrs.h:111
TVM_DECLARE_ATTRS(BroadcastAttrs, "relay.attrs.BroadcastAttrs")
Definition: attrs.h:114
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
Attribute for broadcast operator.
Definition: attrs.h:110
std::string compute_dtype
Definition: attrs.h:39
Attribute for quantize operator.
Definition: attrs.h:70
Helpers for attribute objects.
int axis
Definition: attrs.h:85
std::string rounding
Definition: attrs.h:38
Runtime primitive data type.
Definition: data_type.h:41
int rhs_axis
Definition: attrs.h:112
Attribute for requantize operator.
Definition: attrs.h:36
Attribute for dequantize operator.
Definition: attrs.h:97
int axis
Definition: attrs.h:37
#define TVM_ATTR_FIELD(FieldName)
Declare an attribute field.
Definition: attrs.h:76
int axis
Definition: attrs.h:98
DataType out_dtype
Definition: attrs.h:71
TVM_DECLARE_ATTRS(QuantizeAttrs, "relay.attrs.QuantizeAttrs")
Definition: attrs.h:74
DataType NullValue< DataType >()
Definition: attrs.h:90
TVM_DECLARE_ATTRS(RequantizeAttrs, "relay.attrs.RequantizeAttrs")
Definition: attrs.h:42
int axis
Definition: attrs.h:72
TVM_DECLARE_ATTRS(SimulatedQuantizeAttrs, "relay.attrs.SimulatedQuantizeAttrs")
Definition: attrs.h:87
The base class of the all the Use "curiously recurring template pattern".
Definition: attrs.h:834
TVM_DECLARE_ATTRS(DequantizeAttrs, "relay.attrs.DequantizeAttrs")
Definition: attrs.h:100
DataType out_dtype
Definition: attrs.h:40