-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TRANSFORMATIONS] Call KeepPrecisionSensitiveInFP32 transformations r…
…ecursively for internal MultiSubGraph body (#28050) [TRANSFORMATIONS] Call KeepPrecisionSensitiveInFP32 transformations recursively for internal MultiSubGraph body A set of KeepPrecisionSensitiveInFP32 transformations (MarkSugraphsToKeepInMixedPrecision & AlignMixedFP32FP16Types) preserves the output precisions for certain parts of a model that need to remain in high precision, despite the general model conversion to a different precision (like it's done in the GPU pipeline fp32 -> fp16). The AlignMixedFP32FP16Types transformation makes sure the high precision parts of the graph are surrounded with the required Converts to facilitate with the other parts of the model that have a different precision now. However, this won't take place if the model is an internal body of a MultiSubGraph as the transformation will not be called for it. Fix it by calling the KeepPrecisionSensitiveInFP32 transformations recursively to make sure each internal body is converted correctly having the required Converts for it. - Ticket: CVS-158631 Signed-off-by: Andrii Staikov <[email protected]> --------- Signed-off-by: Andrii Staikov <[email protected]> Co-authored-by: Denis Orlov <[email protected]>
- Loading branch information
1 parent
c1c66ce
commit 6f3796b
Showing
3 changed files
with
132 additions
and
17 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