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

Extend DoubleQDQPairsRemover to handle sequences that end in duplicate DQ nodes #20759

Merged
merged 11 commits into from
May 25, 2024

Conversation

adrianlizarraga
Copy link
Contributor

@adrianlizarraga adrianlizarraga commented May 22, 2024

Description

Extend the DoubleQDQPairsRemover optimizer to also handle sequences that end in duplicate DQ nodes.

For example, the following sequence:

 Q1 --> DQ1 --> Q2 --+--> DQ2
                     |
                     +--> DQ2'

Is now simplified to:

 Q1 ---+--> DQ2
       |
       +--> DQ2'

Motivation and Context

The EnsureUniqueDQNodeUnits pass may add duplicate DQ nodes to ensure valid QDQ node units. The DoubleQDQPairsRemover should still be able to remove unnecessary QDQ ops if the target sequence ends in duplicate DQ nodes.

@adrianlizarraga adrianlizarraga changed the title [DRAFT] Extend DoubleQDQPairsRemover to handle sequences that end in duplicate DQ nodes Extend DoubleQDQPairsRemover to handle sequences that end in duplicate DQ nodes May 23, 2024
@adrianlizarraga adrianlizarraga marked this pull request as ready for review May 23, 2024 17:31
@adrianlizarraga adrianlizarraga requested a review from yihonglyu May 23, 2024 17:40
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
Copy link
Contributor Author

@yuslepukhin I addressed your comments. Could you please take another look? Merging is blocked on Github until you approve that your requested changes have been addressed.

@jywu-msft jywu-msft dismissed yuslepukhin’s stale review May 25, 2024 01:29

adrian addressed comments already. need to unblock this merge.

@jywu-msft jywu-msft merged commit 5bae32e into main May 25, 2024
98 checks passed
@jywu-msft jywu-msft deleted the adrianl/double-qdq-remover-handle-end-duplicate-dq branch May 25, 2024 01:30
@sophies927 sophies927 added the triage:approved Approved for cherrypicks for release label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:1.18.1 triage:approved Approved for cherrypicks for release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants