From bacf880efe8e217bfe1e243f2d294585c9b188e2 Mon Sep 17 00:00:00 2001 From: Gleb Kazantaev Date: Wed, 21 Jul 2021 21:27:59 +0300 Subject: [PATCH] Add more passes to the MOC backend --- .../src/moc_transformations.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/inference-engine/src/offline_transformations/src/moc_transformations.cpp b/inference-engine/src/offline_transformations/src/moc_transformations.cpp index 0b7d66f3743080..71e877bca3e843 100644 --- a/inference-engine/src/offline_transformations/src/moc_transformations.cpp +++ b/inference-engine/src/offline_transformations/src/moc_transformations.cpp @@ -18,6 +18,13 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include NGRAPH_RTTI_DEFINITION(ngraph::pass::MOCTransformations, "MOCTransformations", 0); @@ -38,16 +45,27 @@ bool ngraph::pass::MOCTransformations::run_on_function(std::shared_ptr(); manager.register_pass(); + auto eliminations = manager.register_pass(); + eliminations->add_matcher(); + eliminations->set_name("ngraph::pass::CommonEliminations"); + auto common_fusions = manager.register_pass(); + common_fusions->add_matcher(); common_fusions->add_matcher(); common_fusions->add_matcher(); common_fusions->add_matcher(); common_fusions->add_matcher(); common_fusions->add_matcher(); + common_fusions->add_matcher(); common_fusions->add_matcher(); + common_fusions->add_matcher(); + common_fusions->add_matcher(); common_fusions->add_matcher(); common_fusions->set_name("ngraph::pass::CommonFusions"); + manager.register_pass(); + manager.register_pass(); + manager.run_passes(f); // Restore original shapes to the nGraph Function