Add conditional bounds invalidation in replace_output()#33622
Merged
dorloff merged 5 commits intoopenvinotoolkit:masterfrom Jan 21, 2026
Merged
Add conditional bounds invalidation in replace_output()#33622dorloff merged 5 commits intoopenvinotoolkit:masterfrom
dorloff merged 5 commits intoopenvinotoolkit:masterfrom
Conversation
praasz
reviewed
Jan 16, 2026
praasz
approved these changes
Jan 16, 2026
mryzhov
approved these changes
Jan 19, 2026
0fcb009 to
0a2dfdc
Compare
src/common/transformations/tests/common_optimizations/simplify_shape_of_sub_graph.cpp
Outdated
Show resolved
Hide resolved
CuriousPanCake
approved these changes
Jan 20, 2026
Naseer-010
pushed a commit
to Naseer-010/openvino
that referenced
this pull request
Feb 18, 2026
…kit#33622) ### Details: - Add ForceInvalidation dev API attribute to bypass SkipInvalidation when input source changes - Add `have_same_bounds()` and `set_force_invalidation()` helper functions to dev API - Modify `replace_output()` to conditionally invalidate bounds only when they differ ## Summary When a node's input is replaced, bounds should be invalidated only if the new source has different bounds. This fixes stale bounds after AbsSinking transformation while preserving OptimizeSymbolsUsedAsValues optimization. The fix uses ForceInvalidation runtime attribute that: 1. Is set on tensor when bounds differ between old and new source 2. Overrides SkipInvalidation in `invalidate_values()` 3. Is automatically removed after invalidation via `extract()` ### Tickets: - CVS-175062
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:
have_same_bounds()andset_force_invalidation()helper functions to dev APIreplace_output()to conditionally invalidate bounds only when they differSummary
When a node's input is replaced, bounds should be invalidated only if the new source has different bounds. This fixes stale bounds after AbsSinking transformation while preserving OptimizeSymbolsUsedAsValues optimization.
The fix uses ForceInvalidation runtime attribute that:
invalidate_values()extract()Tickets: