[Transformations] EliminateSequentialFakeQuantize #36075
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the common NopElimination transformation set with a new matcher pass, EliminateSequentialFakeQuantize, intended to remove redundant FakeQuantize nodes when a second FakeQuantize is provably a no-op given the first one. It adds corresponding unit tests under the common transformations test suite.
Changes:
- Added
ov::pass::EliminateSequentialFakeQuantizematcher pass and registered it inov::pass::NopElimination. - Implemented parameter/range/grid checks for sequential
FakeQuantizeelimination, plus small numeric helper utilities. - Added new regression tests (including a parameterized suite) for sequential
FakeQuantizeelimination behavior.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
src/common/transformations/src/transformations/common_optimizations/nop_elimination.cpp |
Implements the new EliminateSequentialFakeQuantize matcher and registers it in NopElimination. |
src/common/transformations/include/transformations/common_optimizations/nop_elimination.hpp |
Declares the new matcher pass and documents intended elimination cases/examples. |
src/common/transformations/tests/common_optimizations/nop_elimination.cpp |
Adds regression coverage and a parameterized test suite for sequential FakeQuantize elimination. |
…dd missing include
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
v-Golubev
approved these changes
Jun 25, 2026
v-Golubev
left a comment
Contributor
There was a problem hiding this comment.
Only minor comments left
…mizations/fq_eliminate_sequential.hpp Co-authored-by: Vladislav Golubev <vladislav.golubev@intel.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
mryzhov
enabled auto-merge
June 26, 2026 08:26
Merged
via the queue into
openvinotoolkit:master
with commit Jun 30, 2026
5e120a0
209 of 211 checks passed
praasz
pushed a commit
to praasz/openvino
that referenced
this pull request
Jul 1, 2026
) ### Details: EliminateSequentialFakeQuantize removes redundant FakeQuantize after FakeQuantize when all parameters and levels match exactly. ### Tickets: - *[CVS-179211](https://jira.devtools.intel.com/browse/CVS-179211)* ### AI Assistance: - *AI assistance used: yes* - *created using skill openvinotoolkit#36074* --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Vladislav Golubev <vladislav.golubev@intel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details:
EliminateSequentialFakeQuantize removes redundant FakeQuantize after FakeQuantize when all parameters and levels match exactly.
Tickets:
AI Assistance: