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.
[Snippets][CPU] Fixed isSuitableChildForFusingMatMul (openvinotoolkit…
…#23182) ### Details: - *The pass `isSuitableChildForFusingMatMul` first checked that the `node` has constant inputs, without checking what the `node` type is and what parent is. It leaded to infinity checks for constant path for the node which cannot be even fused to `MatMul`. Thus, no make sense to check that parent `MatMul` has `constant` path.* - *The PR refactored check `isSuitableChildForFusingMatMul`*: - *Firstly, we check for possible fusion `MatMul (FC)` with `Bias` and `DQScales` based on node type;* - *Secondly, we add specific checks from `MatMul::CanFuse` for binary `Eltwise` and `FQ`. Moreover, this code has been updated for the first time since Snippets support!* - *Thirdly, we check that the node is supported for fusion with `MatMul` (is `Eltwise` op at least) and only after that (!) we check for constant input paths for inputs that are not `MatMul` path to avoid endless searches.* - *Added additional `NodeFusingType` for `FullyConnected` to make the code clearer: now we can init `channelAxis` correctly and separate additional checks in `MatMul::CanFuse`* ### Tickets: - *CVS-134292* ### TODO: - [x] *Performance Validation (Passed - the report is attached to the ticket)*
- Loading branch information
1 parent
3a3f323
commit 8ba1ae3
Showing
2 changed files
with
103 additions
and
86 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