Skip to content

Conversation

@adrianlizarraga
Copy link
Contributor

@adrianlizarraga adrianlizarraga commented Feb 21, 2025

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.

@adrianlizarraga adrianlizarraga marked this pull request as ready for review February 21, 2025 06:25
…f the DoubleQDQPairsRemover is ever changed to L2
@adrianlizarraga adrianlizarraga merged commit d82604e into main Feb 21, 2025
96 of 98 checks passed
@adrianlizarraga adrianlizarraga deleted the adrianl/optimizer-bug-qdq-diff-scale-types branch February 21, 2025 16:26
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-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.

4 participants