Add TransposeMatMul transformation to MOC (#20460)

Transformation fuses Transpose on first or second MatMul's input
and sets MatMul's transpose_a/transpose_b accordingly.

TransposeMatMul is already part of SmartReshape, but it can be added
to MOCTransformations as well so native models that are don't use reshape
can benefit from that.

Ticket: CVS-118908
This commit is contained in:
Mateusz Tabaka authored and GitHub committed 2023-10-24 14:40:36 +02:00
1 parent 6395fc672d
commit b7406247ff
7 files changed
+125 -1

No files matched your search

@@ -102,5 +102,7 @@ std::vector<std::string> disabledTestPatterns() {
R"(.*SplitConvTest.CompareWithRefImpl.*IS=\(1.(128|256)\).*IC=4.*OC=4.*configItem=GNA_DEVICE_MODE_GNA_SW_FP32)",
// TODO: Issue: 114149
R"(.*smoke_Decompose2DConv.*)",
// TODO: Issue: 123306
R"(smoke_convert_matmul_to_fc/ConvertMatmulToFcWithTransposesPass.CompareWithRefImpl/netPRC=FP(32|16)_targetDevice=GNA__configItem=GNA_COMPACT_MODE_NO_configItem=GNA_DEVICE_MODE_GNA_SW_(FP32|EXACT)_IS=\(8.*)",
};
}