Commit e8bcd0d
[QNN EP] Fuse Gelu pattern into a QNN Gelu Node (#26417)
### Description
- ONNX models exported with older Opset version contains Gelu operator
decomposed into multiple operators (Div, Erf, Add, Mul).
- QNN doesn't support Erf operator but supports Gelu operator
- Since QNN doesn't support Erf operator, the graphs contain Gelu
pattern partition between QNN and CPU EPs and degrading the inference
time.
### Motivation and Context
- Identify and fuse the Gelu pattern into a QNN Gelu node improves the
inference time.
---------
Co-authored-by: Tirupathi Reddy T <[email protected]>1 parent 5834bfe commit e8bcd0d
File tree
6 files changed
+1053
-5
lines changed- onnxruntime
- core/providers/qnn/builder/qnn_node_group
- test/providers/qnn/qnn_node_group
6 files changed
+1053
-5
lines changed
0 commit comments