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

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

Merged
merged 5 commits into from
Feb 21, 2025

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
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