Commit bbd3850
authored
[QNN EP] Support quantized BatchNorm with per-channel DQ params on QNN HTP (#26959)
## Motivation:
QNN HTP was rejecting quantized BatchNorm models where parameters
(scale, mean, var) come through DequantizeLinear nodes with per-channel
INT8 quantization. This pattern is common in quantized models from
quantization tools.
## Changes:
- Helpers to resolve BatchNorm params through DQ nodes to their
underlying initializers
- Support per-channel dequantization for BatchNorm parameters
- Support input datatype of UFIXED_POINT_16
- Add unit test covering this QDQ params configuration1 parent 70cf577 commit bbd3850
File tree
3 files changed
+256
-94
lines changed- onnxruntime
- core
- optimizer/qdq_transformer/selectors_actions
- providers/qnn/builder/opbuilder
- test/providers/qnn
3 files changed
+256
-94
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | | - | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
762 | 769 | | |
763 | 770 | | |
764 | 771 | | |
| |||
0 commit comments