QuantizeSpec Struct
INT8 (or other low-precision) quantization parameters. More...
Declaration
Included Headers
Public Member Attributes Index
| AutoFlag | enable = AutoFlag::Auto |
|
On/off/auto. More... | |
| int | zero_point = 0 |
|
Zero-point offset (q = round(x/scale) + zero_point). More... | |
| double | scale = 0.0 |
|
Scale factor; 0 means "use the model's calibration". More... | |
| std::string | output_dtype |
|
Target dtype name (e.g., "int8", "uint8"). More... | |
Description
INT8 (or other low-precision) quantization parameters.
Definition at line 141 of file PreprocessPlan.h.
Public Member Attributes
enable
|
output_dtype
|
Target dtype name (e.g., "int8", "uint8").
Definition at line 145 of file PreprocessPlan.h.
scale
|
Scale factor; 0 means "use the model's calibration".
Definition at line 144 of file PreprocessPlan.h.
zero_point
|
Zero-point offset (q = round(x/scale) + zero_point).
Definition at line 143 of file PreprocessPlan.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.