Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QNN EP] Handle rank 3 InstanceNormalization with N != 1 #17897

Merged
merged 5 commits into from
Oct 13, 2023

Conversation

adrianlizarraga
Copy link
Contributor

Description

The QNN HTP backend does not support rank 3 InstanceNorm if the batch size is not 1. To work around this limitation, QNN EP can wrap a rank 4 QNN InstanceNorm op with Reshapes (with the H dim set to 1).

Motivation and Context

Enable support for more models.

@adrianlizarraga adrianlizarraga marked this pull request as ready for review October 12, 2023 02:36
Copy link
Contributor

@HectorSVC HectorSVC left a comment

Choose a reason for hiding this comment

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

:shipit:

@adrianlizarraga adrianlizarraga merged commit dad70ad into main Oct 13, 2023
91 checks passed
@adrianlizarraga adrianlizarraga deleted the adrianl/qnn-htp-instance-norm-rank3-improve branch October 13, 2023 04:52
jchen351 pushed a commit that referenced this pull request Oct 18, 2023
### Description
The QNN HTP backend does not support rank 3 InstanceNorm if the batch
size is not 1. To work around this limitation, QNN EP can wrap a rank 4
QNN InstanceNorm op with Reshapes (with the H dim set to 1).

### Motivation and Context
Enable support for more models.
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
…7897)

### Description
The QNN HTP backend does not support rank 3 InstanceNorm if the batch
size is not 1. To work around this limitation, QNN EP can wrap a rank 4
QNN InstanceNorm op with Reshapes (with the H dim set to 1).

### Motivation and Context
Enable support for more models.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants