onnxruntime
7df87763 - Add overflow protection for quantization bias to reduce quantization precision loss (#21645)

Commit
1 year ago
Add overflow protection for quantization bias to reduce quantization precision loss (#21645) ### Description <!-- Describe your changes. --> When the scale of the bias is too small, the quantized bias may exceed the range of `int32`, leading to significant loss of precision. Therefore, before converting quantized bias to `int32`, it needs to be clipped within the range of `int32` to reduce the loss of quantization precision. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Fix the issue https://github.com/microsoft/onnxruntime/issues/21000
Author
Parents
Loading