onnxruntime/onnxruntime
Adrian Lizarraga f237b0b1f8
[QNN EP/Quantization] Add MinimumRealRange extra option to quantization script (#18278)
### Description
Adds the extra option `MinimumRealRange` to the quantization script:

```python3
"""
MinimumRealRange= float|None :
                    Default is None. If set to a floating-point value, the calculation of the quantization parameters
                    (i.e., scale and zero point) will enforce a minimum range between rmin and rmax. If (rmax - rmin)
                    is less than the specified minimum range, rmax will be set to rmin + QuantMinRealRange. This is
                    necessary for EPs like QNN that require a minimum floating-point range when determining
                    quantization parameters.
"""
```

### Motivation and Context
QNN requires a minimum floating-point range of 0.0001.

---------

Signed-off-by: adrianlizarraga <adlizarraga@microsoft.com>
2023-11-09 10:55:09 -08:00
..
contrib_ops GQA Flash Attention with Attention Mask (#18283) 2023-11-07 17:47:51 -08:00
core [Migraphx EP] Static int8 QDQ support (#17931) 2023-11-09 17:46:49 +08:00
python [QNN EP/Quantization] Add MinimumRealRange extra option to quantization script (#18278) 2023-11-09 10:55:09 -08:00
test [QNN EP/Quantization] Add MinimumRealRange extra option to quantization script (#18278) 2023-11-09 10:55:09 -08:00
tool/etw
wasm [js/web/training] Add CreateTrainingSession (#17891) 2023-10-26 09:22:10 -07:00
__init__.py Python API to check whether collective ops are available or not (#17730) 2023-09-29 14:11:05 -07:00
ReformatSource.ps1
ReformatSourcePython.bat
VSCodeCoverage.runsettings