Skip to content

[QNN-EP] Add inverse Op to QNN EP - #26068

Merged
HectorSVC merged 2 commits into
microsoft:mainfrom
CodeLinaro:dev/muchhsu/add_inverse_op_to_qnn
Sep 18, 2025
Merged

[QNN-EP] Add inverse Op to QNN EP#26068
HectorSVC merged 2 commits into
microsoft:mainfrom
CodeLinaro:dev/muchhsu/add_inverse_op_to_qnn

Conversation

@quic-muchhsu

Copy link
Copy Markdown
Contributor

Description

Add Inverse Op from com.microsoft domain to QNN EP.

Motivation and Context

Add Inverse Op from com.microsoft domain to QNN EP.

Signed-off-by: Mu-Chein Hsu <quic_muchhsu@quicinc.com>
@quic-muchhsu quic-muchhsu changed the title Add inverse Op to QNN EP [QNN-EP] Add inverse Op to QNN EP Sep 17, 2025
@HectorSVC HectorSVC added the ep:QNN issues related to QNN exeution provider label Sep 17, 2025
@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

@azure-pipelines

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

@HectorSVC
HectorSVC requested a review from Copilot September 17, 2025 20:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the Inverse operator from the Microsoft domain to the QNN execution provider. The implementation decomposes matrix inversion into lower-level operations that are supported by the QNN backend.

  • Adds QNN EP support for the Inverse operator through decomposition into basic mathematical operations
  • Implements comprehensive test coverage for both CPU and HTP backends with various tensor dimensions
  • Includes quantized (QDQ) testing for the HTP backend with appropriate tolerance adjustments

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
inverse_op_test.cc Comprehensive test suite covering 2D, 3D, and 4D tensor inversions for both CPU and HTP backends
inverse_op_builder.cc Core implementation that decomposes matrix inverse into reshape, slice, multiply, subtract, concat, and divide operations
op_builder_factory.h Header declaration for the Inverse op builder factory function
op_builder_factory.cc Registration of the Inverse operator in the QNN EP factory

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread onnxruntime/core/providers/qnn/builder/opbuilder/inverse_op_builder.cc Outdated
Signed-off-by: Mu-Chein Hsu <quic_muchhsu@quicinc.com>
@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

@azure-pipelines

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

@HectorSVC
HectorSVC merged commit 3677f55 into microsoft:main Sep 18, 2025
84 of 85 checks passed
naomiOvad pushed a commit to naomiOvad/onnxruntime that referenced this pull request Nov 2, 2025
### Description
Add Inverse Op from com.microsoft domain to QNN EP.

### Motivation and Context
Add Inverse Op from com.microsoft domain to QNN EP.

---------

Signed-off-by: Mu-Chein Hsu <quic_muchhsu@quicinc.com>
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.

3 participants