onnxruntime/onnxruntime
Adrian Lizarraga 3e4c5e6487
[QNN EP] workaround for QNN validation bug for Tanh with uint16 quantized output (#23432)
### Description
- Skip QNN validation for Tanh with uint16 quantized output (workaround
for QNN validation bug).
- Re-enables unit test for Tanh with uint16 quantized output.

The [QNN
documentation](https://docs.qualcomm.com/bundle/publicresource/topics/80-63442-50/HtpOpDefSupplement.html#tanh)
states that the output scale and offset for `ufixed_point_16` should be
(1/32768) and -32768, respectively. However, the QNN validator
incorrectly rejects these values. So, we skip validation for this
configuration of Tanh. Building an actual QNN graph with the correct
scale/offset still works.


### Motivation and Context
This QNN validation bug appeared in QNN SDK 2.28.0 and is still present
in QNN SDK 2.30.0. A previous PR disabled the corresponding unit test:
https://github.com/microsoft/onnxruntime/pull/22724/files#diff-57f590c6c548b073ba8cd8af6cf198799906f7059ea46b31cd33972ea9b01983R232
2025-01-20 21:35:47 -08:00
..
contrib_ops [WebGPU] allow build WebGPU EP for WebAssembly (#23364) 2025-01-16 10:52:17 -08:00
core [QNN EP] workaround for QNN validation bug for Tanh with uint16 quantized output (#23432) 2025-01-20 21:35:47 -08:00
lora
python Enable comprehension simplification in ruff rules (#23414) 2025-01-17 08:43:06 -08:00
test [QNN EP] workaround for QNN validation bug for Tanh with uint16 quantized output (#23432) 2025-01-20 21:35:47 -08:00
tool/etw
wasm [WebNN] Fixed WebNN Module undefined issue (#22795) 2024-11-11 21:31:24 -08:00
__init__.py Use ruff as the formatter to replace black-isort (#23397) 2025-01-16 11:14:15 -08:00
ReformatSource.ps1
ReformatSourcePython.bat
VSCodeCoverage.runsettings