Skip to content

Commit

Permalink
Remove the fusing Reshape + FC transformation in CPU plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
luweizhou2016 committed Oct 11, 2023
1 parent 497a09b commit 8a4ff5e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 99 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <ngraph/pass/constant_folding.hpp>
#include "ngraph/op/fake_quantize.hpp"
#include "ngraph/pass/manager.hpp"
#include "common/pass/reshape_fc_fusion.hpp"
#include "common/pass/align_matmul_input_ranks.hpp"
#include "transformations/common_optimizations/reshape_prelu.hpp"
#include "common/pass/convert_broadcast_to_tiles.hpp"
Expand Down Expand Up @@ -41,9 +40,6 @@ inline void ConvertToCPUSpecificOpset(std::shared_ptr<ngraph::Function> &nGraphF
CPU_REGISTER_PASS_COMMON(manager, ConvertToLeakyRelu);
CPU_REGISTER_PASS_COMMON(manager, ConvertToSwishCPU);
CPU_REGISTER_PASS_COMMON(manager, OptimizeSequenceTransposes);
if (!ov::op::util::has_op_with_type<ngraph::op::FakeQuantize>(nGraphFunc)) {
CPU_REGISTER_PASS_COMMON(manager, ReshapeFullyConnectedFusion);
}
// after transformation "MoveEltwiseUpThroughDataMov" there can be reshaped sequences that should be eliminated or fused
CPU_REGISTER_PASS_COMMON(manager, ov::pass::ReshapeSequenceFusion);
CPU_REGISTER_PASS_COMMON(manager, ov::pass::ConstantFolding);
Expand Down

0 comments on commit 8a4ff5e

Please sign in to comment.