Skip to content

Commit

Permalink
Disabled sinking for networks without Convolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Mar 15, 2023
1 parent 41e1b72 commit 2acd7c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/intel_gna/src/gna_transformations_pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,16 @@ void TransformationsPipeline::apply(const std::shared_ptr<ov::Model>& model,
manager.register_pass<ov::intel_gna::pass::RemoveSingleInputConcat>();
manager.register_pass<ov::intel_gna::pass::SubstituteSoftsign>();
manager.register_pass<ov::intel_gna::pass::InsertCopyBeforeLayerToBeEliminated>();
// TODO enable this transformation for networks without convolutions
if (ov::op::util::has_op_with_type<ngraph::opset7::Convolution>(model) || ov::op::util::has_op_with_type<ngraph::opset7::MaxPool>(model)) {
manager.register_pass<ov::intel_gna::pass::TransposeNCHW>();
manager.register_pass<ov::intel_gna::pass::ReshapeTransposeSubstitute>();
manager.register_pass<ov::pass::TransposeSinkingGeneral>();
manager.register_pass<ov::intel_gna::pass::GatherSinkingGeneral>();
manager.register_pass<ov::pass::ReshapeSequenceFusion>();
manager.register_pass<ov::pass::TransposeToReshape>();
manager.register_pass<ov::intel_gna::pass::GnaConvolutionFusion>();
}
manager.register_pass<ov::intel_gna::pass::RemoveInputsProcessing>(subgraph_cpu_map);
manager.register_pass<ov::intel_gna::pass::RemoveOutputsProcessing>(subgraph_cpu_map);
manager.register_pass<ov::pass::ConvertOpSet3ToOpSet2>();
Expand Down

0 comments on commit 2acd7c4

Please sign in to comment.