Skip to content

[QNN EP] Add support for Mean Op in QNN EP - #25021

Merged
Hector Li (HectorSVC) merged 3 commits into
microsoft:mainfrom
CodeLinaro:dev/quic-ashwshan/add_mean_op_support
Jun 25, 2025
Merged

Hector Li (HectorSVC) merged 3 commits into
microsoft:mainfrom
CodeLinaro:dev/quic-ashwshan/add_mean_op_support

Conversation

@quic-ashwshan

Copy link
Copy Markdown
Contributor
  • Implemented MeanOpBuilder to support ONNX Mean operator in QNN EP.
  • Decomposed Mean into a sequence of element-wise Add operations followed by a Div Op.
  • Added unit tests for Mean op running on HTP

Description

Adds support for the ONNX Mean operator in QNN EP via Add + Div decomposition.

Motivation and Context

Enables execution of models using Mean on QNN backend, improving Op support.

- Implemented MeanOpBuilder to support ONNX Mean operator in QNN EP.
- Decomposed Mean into a sequence of element-wise Add operations followed
  by a Div Op.
- Added unit tests for Mean op running on HTP
@HectorSVC

Copy link
Copy Markdown
Contributor

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline,Windows x64 QNN CI Pipeline

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 5 pipeline(s).

Comment thread onnxruntime/test/providers/qnn/simple_op_htp_test.cc
@HectorSVC Hector Li (HectorSVC) added the ep:QNN issues related to QNN exeution provider label Jun 11, 2025
@quic-ashwshan

Copy link
Copy Markdown
Contributor Author

Resolved merge conflict.

@HectorSVC

Copy link
Copy Markdown
Contributor

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline,Windows x64 QNN CI Pipeline

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 5 pipeline(s).

@quic-ashwshan

Copy link
Copy Markdown
Contributor Author

Looks like there is another merge conflict. Can this be resolved during merge? or do I need to pull latest change again?

@quic-ashwshan

Copy link
Copy Markdown
Contributor Author

Looks like there is another merge conflict. Can this be resolved during merge? or do I need to pull latest change again?

resolved

@HectorSVC

Copy link
Copy Markdown
Contributor

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline,Windows x64 QNN CI Pipeline

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 5 pipeline(s).

@HectorSVC
Hector Li (HectorSVC) merged commit 2bd9915 into microsoft:main Jun 25, 2025
ankus-qti pushed a commit to CodeLinaro/onnxruntime that referenced this pull request Nov 25, 2025
- Implemented MeanOpBuilder to support ONNX Mean operator in QNN EP.
- Decomposed Mean into a sequence of element-wise Add operations followed by a Div Op.
- Added unit tests for Mean op running on HTP

### Description
Adds support for the ONNX Mean operator in QNN EP via Add + Div decomposition.



### Motivation and Context
Enables execution of models using Mean on QNN backend, improving Op
support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ep:QNN issues related to QNN exeution provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants