Skip to content

Commit 8a4ff5e

Browse files
committed
Remove the fusing Reshape + FC transformation in CPU plugin.
1 parent 497a09b commit 8a4ff5e

File tree

3 files changed

+0
-99
lines changed

3 files changed

+0
-99
lines changed

src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/reshape_fc_fusion.cpp

Lines changed: 0 additions & 76 deletions
This file was deleted.

src/plugins/intel_cpu/src/transformations/cpu_opset/common/pass/reshape_fc_fusion.hpp

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/plugins/intel_cpu/src/transformations/cpu_opset/convert_to_cpu_specific_opset.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
#include <ngraph/pass/constant_folding.hpp>
66
#include "ngraph/op/fake_quantize.hpp"
77
#include "ngraph/pass/manager.hpp"
8-
#include "common/pass/reshape_fc_fusion.hpp"
98
#include "common/pass/align_matmul_input_ranks.hpp"
109
#include "transformations/common_optimizations/reshape_prelu.hpp"
1110
#include "common/pass/convert_broadcast_to_tiles.hpp"
@@ -41,9 +40,6 @@ inline void ConvertToCPUSpecificOpset(std::shared_ptr<ngraph::Function> &nGraphF
4140
CPU_REGISTER_PASS_COMMON(manager, ConvertToLeakyRelu);
4241
CPU_REGISTER_PASS_COMMON(manager, ConvertToSwishCPU);
4342
CPU_REGISTER_PASS_COMMON(manager, OptimizeSequenceTransposes);
44-
if (!ov::op::util::has_op_with_type<ngraph::op::FakeQuantize>(nGraphFunc)) {
45-
CPU_REGISTER_PASS_COMMON(manager, ReshapeFullyConnectedFusion);
46-
}
4743
// after transformation "MoveEltwiseUpThroughDataMov" there can be reshaped sequences that should be eliminated or fused
4844
CPU_REGISTER_PASS_COMMON(manager, ov::pass::ReshapeSequenceFusion);
4945
CPU_REGISTER_PASS_COMMON(manager, ov::pass::ConstantFolding);

0 commit comments

Comments
 (0)