-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed unified FakeConverts duplication (#2877)
### Changes - Fixed the `MinMax` algorithm for the `FakeConvert` insertion case. ### Reason for changes - Incorrect `MinMax` behaviour introduced in #2622. ### Related tickets - 149128 ### Tests - Manual Incorrect behaviour - two identical layers were inserted: ![image](https://github.com/user-attachments/assets/28fb5419-c9ac-400d-a8cc-bcf1d0e32241) Corrected behaviour - only one layer for each branch was inserted: ![image](https://github.com/user-attachments/assets/d0ab38e5-320a-49b3-8c02-5669b42257f4)
- Loading branch information
Showing
5 changed files
with
169 additions
and
0 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
58 changes: 58 additions & 0 deletions
58
tests/openvino/native/data/2024.3/reference_scales/UnifiedScalesModel_fp8_e4m3.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"Conv/fc_weights_1": { | ||
"scale": [ | ||
[ | ||
[ | ||
[ | ||
550.8624267578125 | ||
] | ||
] | ||
], | ||
[ | ||
[ | ||
[ | ||
490.8214416503906 | ||
] | ||
] | ||
], | ||
[ | ||
[ | ||
[ | ||
479.1072692871094 | ||
] | ||
] | ||
] | ||
], | ||
"shift": [ | ||
[ | ||
[ | ||
[ | ||
0.0 | ||
] | ||
] | ||
], | ||
[ | ||
[ | ||
[ | ||
0.0 | ||
] | ||
] | ||
], | ||
[ | ||
[ | ||
[ | ||
0.0 | ||
] | ||
] | ||
] | ||
] | ||
}, | ||
"Cos/fc_output_0": { | ||
"scale": 224.00006103515625, | ||
"shift": 0.0 | ||
}, | ||
"Sin/fc_output_0": { | ||
"scale": 224.00006103515625, | ||
"shift": 0.0 | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
tests/openvino/native/data/2024.3/reference_scales/UnifiedScalesModel_fp8_e5m2.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"Conv/fc_weights_1": { | ||
"scale": [ | ||
[ | ||
[ | ||
[ | ||
70510.390625 | ||
] | ||
] | ||
], | ||
[ | ||
[ | ||
[ | ||
62825.14453125 | ||
] | ||
] | ||
], | ||
[ | ||
[ | ||
[ | ||
61325.73046875 | ||
] | ||
] | ||
] | ||
], | ||
"shift": [ | ||
[ | ||
[ | ||
[ | ||
0.0 | ||
] | ||
] | ||
], | ||
[ | ||
[ | ||
[ | ||
0.0 | ||
] | ||
] | ||
], | ||
[ | ||
[ | ||
[ | ||
0.0 | ||
] | ||
] | ||
] | ||
] | ||
}, | ||
"Cos/fc_output_0": { | ||
"scale": 28672.0078125, | ||
"shift": 0.0 | ||
}, | ||
"Sin/fc_output_0": { | ||
"scale": 28672.0078125, | ||
"shift": 0.0 | ||
} | ||
} |
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