Skip to content

[QNN EP] Disable early termination in GetCapability#18140

Merged
HectorSVC merged 1 commit intomainfrom
qnn_disable_early_terminate
Oct 30, 2023
Merged

[QNN EP] Disable early termination in GetCapability#18140
HectorSVC merged 1 commit intomainfrom
qnn_disable_early_terminate

Conversation

@HectorSVC
Copy link
Contributor

[QNN EP] Disable early termination in GetCapability if there are multiple partition and context binary enabled

Description

QNN EP context binary cache feature only support single partition for now. We have early termination in GetCapability.
After the PR #17764. There's no Level 1 optimization any more for the 1st GetCapability. Graph transformer EnsureUniqueDQForNodeUnit is not applied. So if there's initializer -> DQ -> shared by multiple node unit. The node is not identified as node unit group. QNN EP report many not supported nodes because of this in the 1st GetCapability call.
The 2nd GetCapability still works normally.
Disable the early termination in GetCapability, delay the decision to Compile.

@HectorSVC HectorSVC merged commit be2f72a into main Oct 30, 2023
@HectorSVC HectorSVC deleted the qnn_disable_early_terminate branch October 30, 2023 15:34
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
[QNN EP] Disable early termination in GetCapability if there are
multiple partition and context binary enabled

### Description
QNN EP context binary cache feature only support single partition for
now. We have early termination in GetCapability.
After the PR microsoft#17764.
There's no Level 1 optimization any more for the 1st GetCapability.
Graph transformer EnsureUniqueDQForNodeUnit is not applied. So if
there's initializer -> DQ -> shared by multiple node unit. The node is
not identified as node unit group. QNN EP report many not supported
nodes because of this in the 1st GetCapability call.
The 2nd GetCapability still works normally.
Disable the early termination in GetCapability, delay the decision to
Compile.
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