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.
[GPU] applying activations scaling only to layers whose 1st input pre…
…cision is the same as infer precision. (openvinotoolkit#28850) ### Details: - Input precisions of some layers could be different from inference precision. - `IncreasePositionIdsPrecision` updates some `MatMul` layers to be executed in f32 precision. - other examples: hybrid-quantized models, precision sensitive layers, and so on. - Activations scaling should not be applied to these cases. - in the case of f32, we don't need activations scaling. - in the case of int8, we can't apply activations scaling. - So. this PR updates the activations scaling to be applied only to layers whose 1st input precision is the same as infer precision. ### Tickets: - 161681
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 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