Skip to content

[Optimizer] Fix exception for Q -> DQ sequence with different scale types - #23771

Merged
Adrian Lizarraga (adrianlizarraga) merged 5 commits into
mainfrom
adrianl/optimizer-bug-qdq-diff-scale-types
Feb 21, 2025
Merged

[Optimizer] Fix exception for Q -> DQ sequence with different scale types#23771
Adrian Lizarraga (adrianlizarraga) merged 5 commits into
mainfrom
adrianl/optimizer-bug-qdq-diff-scale-types

Conversation

@adrianlizarraga

@adrianlizarraga Adrian Lizarraga (adrianlizarraga) commented Feb 21, 2025

Copy link
Copy Markdown
Contributor

Description

Fixes bug in the IsQDQPairSupported utility function, which is used by various QDQ optimizers (e.g., DoubleQDQPairsRemover, QDQFinalCleanup, etc.). The bug causes an exception when IsQDQPairIsSupported() is called with a Q(scale_f32) -> DQ(scale_f16) sequence that uses different scale types.

Motivation and Context

Fix bug that prevents creating QDQ models that use scales of different types.

…f the DoubleQDQPairsRemover is ever changed to L2
@adrianlizarraga
Adrian Lizarraga (adrianlizarraga) deleted the adrianl/optimizer-bug-qdq-diff-scale-types branch February 21, 2025 16:26
Guenther Schmuelling (guschmue) pushed a commit that referenced this pull request Mar 6, 2025
…ypes (#23771)

### Description
Fixes bug in the IsQDQPairSupported utility function, which is used by
various QDQ optimizers (e.g., DoubleQDQPairsRemover, QDQFinalCleanup,
etc.). The bug causes an exception when IsQDQPairIsSupported() is called
with a `Q(scale_f32) -> DQ(scale_f16)` sequence that uses different
scale types.



### Motivation and Context
Fix bug that prevents creating QDQ models that use scales of different
types.
Ashrit Shetty (ashrit-ms) pushed a commit that referenced this pull request Mar 17, 2025
…ypes (#23771)

### Description
Fixes bug in the IsQDQPairSupported utility function, which is used by
various QDQ optimizers (e.g., DoubleQDQPairsRemover, QDQFinalCleanup,
etc.). The bug causes an exception when IsQDQPairIsSupported() is called
with a `Q(scale_f32) -> DQ(scale_f16)` sequence that uses different
scale types.



### Motivation and Context
Fix bug that prevents creating QDQ models that use scales of different
types.
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.

3 participants