forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update MarkDequantization transformation (openvinotoolkit#27406)
### Details: **Original issue description:** > Inside MarkDequantizationSubgraph, we try to find the dequantization subgraph and mark it with disable const folding and keep const precision attributes. > The dequantization subgraph has a relaxed structure and allows "any_input" as the input of Convert operation. > > from MarkDequantizationSubgraph: > <img width="235" alt="{A09C9C08-03C1-4A48-8EAD-60D7EF76A4B5}" src="https://github.com/user-attachments/assets/d07063c8-6872-4946-ae9a-397eb2c41d87"> > > in the current case this is > (any input: Constant->Reshape) -> (necessary Convert) > > Constant->Reshape will be ConstFolded. ConstFolding doesn't run data copying in case of Reshape operation, so this is valid scenario. > > MarkDequantizationSubgraph transformation marks Reshape op with "KeepConstPrecision" attribute. > But after ConstFolding, KeepConstPrecision attr won't be copied to resulting constant because of > <img width="148" alt="{FE3E166D-17BD-410F-A08F-4502FB9BB3D0}" src="https://github.com/user-attachments/assets/3dac34b9-9a79-4359-b4f8-87e69633ffb8"> > and the whole dequantization subgraph will be const folded. **Changes:** - MarkDequantizationSubgraph logic was split into 2 transformations: MarkDequantization, KeepConstPrecision ### Tickets: - *CVS-156576* - *CVS-156329*
- Loading branch information
Showing
9 changed files
with
299 additions
and
130 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.