mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-13 18:08:13 +00:00
update docs/performance: fix typo (#11372)
Here it should be `max` instead of `abs` for symmetric quantization.
This commit is contained in:
parent
00abe64ce8
commit
8533e50b24
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ Quantization in ONNX Runtime refers to 8 bit linear quantization of an ONNX mode
|
|||
|
||||
For symmetric quantization:
|
||||
```
|
||||
scale = abs(data_range_max, data_range_min) * 2 / (quantization_range_max - quantization_range_min)
|
||||
scale = max(abs(data_range_max), abs(data_range_min)) * 2 / (quantization_range_max - quantization_range_min)
|
||||
```
|
||||
|
||||
Zero_point represents zero in the quantization space. It is important that the floating point zero value be exactly representable in quantization space. This is because zero padding is used in many CNNs. If it is not possible to represent 0 uniquely after quantization, it will result in accuracy errors.
|
||||
|
|
|
|||
Loading…
Reference in a new issue