diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp index 33fec2da625..a1b559f3c4d 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_binary.hpp @@ -15,7 +15,7 @@ namespace transpose_sinking { class TRANSFORMATIONS_API TSBinaryForward; class TRANSFORMATIONS_API TSBinaryBackward; -} +} // namespace transpose_sinking } // namespace pass } // namespace ov diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp index f78681ed054..904f68ec4fa 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_concat.hpp @@ -15,9 +15,9 @@ namespace transpose_sinking { class TRANSFORMATIONS_API TSConcatForward; class TRANSFORMATIONS_API TSConcatBackward; +} // namespace transpose_sinking } // namespace pass } // namespace ov -} /** * @ingroup ie_transformation_common_api diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp index c7480c6c4e3..090f67492f4 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_data_movement.hpp @@ -15,9 +15,9 @@ namespace transpose_sinking { class TRANSFORMATIONS_API TSDataMovementForward; class TRANSFORMATIONS_API TSDataMovementBackward; +} // namespace transpose_sinking } // namespace pass } // namespace ov -} /** * @ingroup ie_transformation_common_api diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp index 5ab4ad4f2f6..84294d9640e 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_fuse.hpp @@ -14,9 +14,9 @@ namespace transpose_sinking { class TRANSFORMATIONS_API TSFuse; +} // namespace transpose_sinking } // namespace pass } // namespace ov -} /** * @ingroup ie_transformation_common_api diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp index 655be3c307a..8199f4c378d 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_general.hpp @@ -15,9 +15,9 @@ class TRANSFORMATIONS_API TSGeneralForward; class TRANSFORMATIONS_API TSGeneralBackward; class TRANSFORMATIONS_API TSGeneral; +} // namespace transpose_sinking } // namespace pass } // namespace ov -} /** * @ingroup ie_transformation_common_api diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp index bc0cac6d7cd..519154626a9 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_interpolate.hpp @@ -15,9 +15,9 @@ namespace transpose_sinking { class TRANSFORMATIONS_API TSInterpolateForward; class TRANSFORMATIONS_API TSInterpolateBackward; +} // namespace transpose_sinking } // namespace pass } // namespace ov -} /** * @ingroup ie_transformation_common_api diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp index 629e465bef9..6f462875b7f 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_reduction.hpp @@ -15,9 +15,9 @@ namespace transpose_sinking { class TRANSFORMATIONS_API TSReductionForward; class TRANSFORMATIONS_API TSReductionBackward; +} // namespace transpose_sinking } // namespace pass } // namespace ov -} /** * @ingroup ie_transformation_common_api diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp index 543441a66d1..ba75ac65662 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_split.hpp @@ -15,9 +15,9 @@ namespace transpose_sinking { class TRANSFORMATIONS_API TSSplitBackward; class TRANSFORMATIONS_API TSSplitForward; +} // namespace transpose_sinking } // namespace pass } // namespace ov -} /** * @ingroup ie_transformation_common_api diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp index 662c1093a87..9c6e93356f7 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_unary.hpp @@ -14,9 +14,9 @@ namespace transpose_sinking { class TRANSFORMATIONS_API TSUnaryForward; class TRANSFORMATIONS_API TSUnaryBackward; +} // namespace transpose_sinking } // namespace pass } // namespace ov -} /** * @ingroup ie_transformation_common_api diff --git a/src/common/transformations/include/transformations/transpose_sinking/ts_utils.hpp b/src/common/transformations/include/transformations/transpose_sinking/ts_utils.hpp index 8242e8ec603..7c14886f893 100644 --- a/src/common/transformations/include/transformations/transpose_sinking/ts_utils.hpp +++ b/src/common/transformations/include/transformations/transpose_sinking/ts_utils.hpp @@ -4,12 +4,12 @@ #pragma once -#include "transformations/utils/utils.hpp" #include #include "openvino/op/util/op_types.hpp" #include "openvino/opsets/opset10.hpp" #include "openvino/util/common_util.hpp" +#include "transformations/utils/utils.hpp" namespace ov { namespace pass { @@ -109,7 +109,7 @@ ov::Output ChangeValuesOrder(const ov::Output& input, const ov::AxisVector& transpose_axis_order, const std::shared_ptr& axis); +} // namespace utils } // namespace transpose_sinking -} -} -} +} // namespace pass +} // namespace ov diff --git a/src/common/transformations/src/transformations/transpose_sinking/ts_binary.cpp b/src/common/transformations/src/transformations/transpose_sinking/ts_binary.cpp index fdc36f8338c..ef46b4143c2 100644 --- a/src/common/transformations/src/transformations/transpose_sinking/ts_binary.cpp +++ b/src/common/transformations/src/transformations/transpose_sinking/ts_binary.cpp @@ -5,8 +5,8 @@ #include "transformations/transpose_sinking/ts_binary.hpp" #include "itt.hpp" -#include "openvino/opsets/opset10.hpp" #include "openvino/op/util/op_types.hpp" +#include "openvino/opsets/opset10.hpp" #include "openvino/pass/pattern/op/or.hpp" #include "openvino/pass/pattern/op/wrap_type.hpp" #include "transformations/rt_info/transpose_sinking_attr.hpp" diff --git a/src/common/transformations/src/transformations/transpose_sinking/ts_concat.cpp b/src/common/transformations/src/transformations/transpose_sinking/ts_concat.cpp index 2ce5a4d4a5d..4694b945650 100644 --- a/src/common/transformations/src/transformations/transpose_sinking/ts_concat.cpp +++ b/src/common/transformations/src/transformations/transpose_sinking/ts_concat.cpp @@ -8,8 +8,8 @@ #include "openvino/op/util/op_types.hpp" #include "openvino/opsets/opset10.hpp" #include "openvino/pass/pattern/op/wrap_type.hpp" -#include "transformations/transpose_sinking/ts_utils.hpp" #include "transformations/rt_info/transpose_sinking_attr.hpp" +#include "transformations/transpose_sinking/ts_utils.hpp" using namespace ov; using namespace ov::opset10; diff --git a/src/common/transformations/src/transformations/transpose_sinking/ts_data_movement.cpp b/src/common/transformations/src/transformations/transpose_sinking/ts_data_movement.cpp index 0431b0af881..482841d2c65 100644 --- a/src/common/transformations/src/transformations/transpose_sinking/ts_data_movement.cpp +++ b/src/common/transformations/src/transformations/transpose_sinking/ts_data_movement.cpp @@ -9,8 +9,8 @@ #include "openvino/opsets/opset10.hpp" #include "openvino/pass/pattern/op/wrap_type.hpp" #include "openvino/util/common_util.hpp" -#include "transformations/transpose_sinking/ts_utils.hpp" #include "transformations/rt_info/transpose_sinking_attr.hpp" +#include "transformations/transpose_sinking/ts_utils.hpp" using namespace ov; using namespace ov::opset10; diff --git a/src/common/transformations/src/transformations/transpose_sinking/ts_general.cpp b/src/common/transformations/src/transformations/transpose_sinking/ts_general.cpp index 197e5e66e7b..507b874d78b 100644 --- a/src/common/transformations/src/transformations/transpose_sinking/ts_general.cpp +++ b/src/common/transformations/src/transformations/transpose_sinking/ts_general.cpp @@ -4,12 +4,11 @@ #include "transformations/transpose_sinking/ts_general.hpp" +#include "itt.hpp" #include "openvino/pass/constant_folding.hpp" #include "openvino/pass/graph_rewrite.hpp" #include "openvino/pass/manager.hpp" #include "openvino/pass/pattern/op/wrap_type.hpp" - -#include "itt.hpp" #include "transformations/transpose_sinking/ts_binary.hpp" #include "transformations/transpose_sinking/ts_concat.hpp" #include "transformations/transpose_sinking/ts_data_movement.hpp" diff --git a/src/common/transformations/src/transformations/transpose_sinking/ts_interpolate.cpp b/src/common/transformations/src/transformations/transpose_sinking/ts_interpolate.cpp index e07ba82b173..0a9c2b7458f 100644 --- a/src/common/transformations/src/transformations/transpose_sinking/ts_interpolate.cpp +++ b/src/common/transformations/src/transformations/transpose_sinking/ts_interpolate.cpp @@ -4,15 +4,14 @@ #include "transformations/transpose_sinking/ts_interpolate.hpp" -#include "openvino/pass/pattern/op/or.hpp" - #include "itt.hpp" #include "openvino/op/util/op_types.hpp" #include "openvino/opsets/opset10.hpp" +#include "openvino/pass/pattern/op/or.hpp" #include "openvino/pass/pattern/op/wrap_type.hpp" #include "openvino/util/common_util.hpp" -#include "transformations/transpose_sinking/ts_utils.hpp" #include "transformations/rt_info/transpose_sinking_attr.hpp" +#include "transformations/transpose_sinking/ts_utils.hpp" using namespace ov; using namespace ov::opset10; diff --git a/src/common/transformations/src/transformations/transpose_sinking/ts_reduction.cpp b/src/common/transformations/src/transformations/transpose_sinking/ts_reduction.cpp index 22e0f82fbcf..ab4e76994ec 100644 --- a/src/common/transformations/src/transformations/transpose_sinking/ts_reduction.cpp +++ b/src/common/transformations/src/transformations/transpose_sinking/ts_reduction.cpp @@ -168,7 +168,7 @@ TSReductionBackward::TSReductionBackward() { auto reduce_or_squeeze_label = pattern:: wrap_type( {pattern::any_input(), pattern::wrap_type()}, - HasSameOutputTransposeNodes); + HasSameOutputTransposeNodes); auto transpose_label = pattern::wrap_type({reduce_or_squeeze_label, pattern::wrap_type()}); ov::matcher_pass_callback matcher_pass_callback = [=](pattern::Matcher& m) { const auto& pattern_to_output = m.get_pattern_value_map(); diff --git a/src/common/transformations/src/transformations/transpose_sinking/ts_split.cpp b/src/common/transformations/src/transformations/transpose_sinking/ts_split.cpp index 364cec424b5..3aeb74436e7 100644 --- a/src/common/transformations/src/transformations/transpose_sinking/ts_split.cpp +++ b/src/common/transformations/src/transformations/transpose_sinking/ts_split.cpp @@ -9,8 +9,8 @@ #include "openvino/opsets/opset10.hpp" #include "openvino/pass/pattern/op/label.hpp" #include "openvino/pass/pattern/op/wrap_type.hpp" -#include "transformations/transpose_sinking/ts_utils.hpp" #include "transformations/rt_info/transpose_sinking_attr.hpp" +#include "transformations/transpose_sinking/ts_utils.hpp" #include "transformations/utils/utils.hpp" using namespace ov::pass::pattern; diff --git a/src/common/transformations/src/transformations/transpose_sinking/ts_unary.cpp b/src/common/transformations/src/transformations/transpose_sinking/ts_unary.cpp index be16590386a..ed543ca9d92 100644 --- a/src/common/transformations/src/transformations/transpose_sinking/ts_unary.cpp +++ b/src/common/transformations/src/transformations/transpose_sinking/ts_unary.cpp @@ -9,8 +9,8 @@ #include "itt.hpp" #include "openvino/opsets/opset10.hpp" #include "openvino/pass/pattern/op/wrap_type.hpp" -#include "transformations/transpose_sinking/ts_utils.hpp" #include "transformations/rt_info/transpose_sinking_attr.hpp" +#include "transformations/transpose_sinking/ts_utils.hpp" #include "transformations/utils/utils.hpp" using namespace ov; diff --git a/src/common/transformations/src/transformations/transpose_sinking/ts_utils.cpp b/src/common/transformations/src/transformations/transpose_sinking/ts_utils.cpp index 60ee992052a..9925087be7d 100644 --- a/src/common/transformations/src/transformations/transpose_sinking/ts_utils.cpp +++ b/src/common/transformations/src/transformations/transpose_sinking/ts_utils.cpp @@ -379,7 +379,7 @@ void RemoveSingleOutputConsumers(const NodePtr& node) { } } +} // namespace utils } // namespace transpose_sinking -} -} -} +} // namespace pass +} // namespace ov diff --git a/src/common/transformations/tests/transpose_sinking/ts_binary_test.cpp b/src/common/transformations/tests/transpose_sinking/ts_binary_test.cpp index f63e3d0aad2..6340b3b41e9 100644 --- a/src/common/transformations/tests/transpose_sinking/ts_binary_test.cpp +++ b/src/common/transformations/tests/transpose_sinking/ts_binary_test.cpp @@ -2,14 +2,15 @@ // SPDX-License-Identifier: Apache-2.0 // -#include -#include "openvino/frontend/manager.hpp" -#include "openvino/opsets/opset10.hpp" -#include "openvino/pass/manager.hpp" #include "transformations/transpose_sinking/ts_binary.hpp" +#include + #include "common_test_utils/ngraph_test_utils.hpp" #include "gtest/gtest.h" +#include "openvino/frontend/manager.hpp" +#include "openvino/opsets/opset10.hpp" +#include "openvino/pass/manager.hpp" #include "ts_test_utils.hpp" using namespace ov; @@ -1219,6 +1220,6 @@ INSTANTIATE_TEST_SUITE_P(TSBinaryBackwardBinaryMultiConsumersTestSuite, } // namespace mult_consumers -} // namespace transpose_sinking_binary_eltwise -} -} +} // namespace binary +} // namespace testing +} // namespace transpose_sinking diff --git a/src/common/transformations/tests/transpose_sinking/ts_common_test.cpp b/src/common/transformations/tests/transpose_sinking/ts_common_test.cpp index 88394650350..10de11c2893 100644 --- a/src/common/transformations/tests/transpose_sinking/ts_common_test.cpp +++ b/src/common/transformations/tests/transpose_sinking/ts_common_test.cpp @@ -2,11 +2,10 @@ // SPDX-License-Identifier: Apache-2.0 // -#include "openvino/opsets/opset10.hpp" -#include "openvino/pass/manager.hpp" - #include "common_test_utils/ngraph_test_utils.hpp" #include "gtest/gtest.h" +#include "openvino/opsets/opset10.hpp" +#include "openvino/pass/manager.hpp" #include "transformations/transpose_sinking/ts_binary.hpp" #include "transformations/transpose_sinking/ts_concat.hpp" #include "transformations/transpose_sinking/ts_data_movement.hpp" diff --git a/src/common/transformations/tests/transpose_sinking/ts_concat_test.cpp b/src/common/transformations/tests/transpose_sinking/ts_concat_test.cpp index 62de9349916..d9c8ccad341 100644 --- a/src/common/transformations/tests/transpose_sinking/ts_concat_test.cpp +++ b/src/common/transformations/tests/transpose_sinking/ts_concat_test.cpp @@ -2,16 +2,17 @@ // SPDX-License-Identifier: Apache-2.0 // -#include -#include "openvino/frontend/manager.hpp" -#include "openvino/opsets/opset10.hpp" -#include "openvino/pass/manager.hpp" #include "transformations/transpose_sinking/ts_concat.hpp" -#include "transformations/transpose_sinking/ts_utils.hpp" -#include "transformations/init_node_info.hpp" + +#include #include "common_test_utils/ngraph_test_utils.hpp" #include "gtest/gtest.h" +#include "openvino/frontend/manager.hpp" +#include "openvino/opsets/opset10.hpp" +#include "openvino/pass/manager.hpp" +#include "transformations/init_node_info.hpp" +#include "transformations/transpose_sinking/ts_utils.hpp" #include "ts_test_utils.hpp" using namespace ov; diff --git a/src/common/transformations/tests/transpose_sinking/ts_general_test.cpp b/src/common/transformations/tests/transpose_sinking/ts_general_test.cpp index ec340cbad86..ee077f66734 100644 --- a/src/common/transformations/tests/transpose_sinking/ts_general_test.cpp +++ b/src/common/transformations/tests/transpose_sinking/ts_general_test.cpp @@ -2,15 +2,16 @@ // SPDX-License-Identifier: Apache-2.0 // -#include -#include "openvino/frontend/manager.hpp" -#include "openvino/opsets/opset10.hpp" -#include "openvino/pass/manager.hpp" #include "transformations/transpose_sinking/ts_general.hpp" -#include "transformations/init_node_info.hpp" + +#include #include "common_test_utils/ngraph_test_utils.hpp" #include "gtest/gtest.h" +#include "openvino/frontend/manager.hpp" +#include "openvino/opsets/opset10.hpp" +#include "openvino/pass/manager.hpp" +#include "transformations/init_node_info.hpp" using namespace testing; using namespace ov::opset10; diff --git a/src/common/transformations/tests/transpose_sinking/ts_split_test.cpp b/src/common/transformations/tests/transpose_sinking/ts_split_test.cpp index 00d8b72f131..67e506566cb 100644 --- a/src/common/transformations/tests/transpose_sinking/ts_split_test.cpp +++ b/src/common/transformations/tests/transpose_sinking/ts_split_test.cpp @@ -2,15 +2,16 @@ // SPDX-License-Identifier: Apache-2.0 // -#include -#include "openvino/frontend/manager.hpp" -#include "openvino/opsets/opset10.hpp" -#include "openvino/pass/manager.hpp" #include "transformations/transpose_sinking/ts_split.hpp" -#include "transformations/init_node_info.hpp" + +#include #include "common_test_utils/ngraph_test_utils.hpp" #include "gtest/gtest.h" +#include "openvino/frontend/manager.hpp" +#include "openvino/opsets/opset10.hpp" +#include "openvino/pass/manager.hpp" +#include "transformations/init_node_info.hpp" #include "ts_test_utils.hpp" using namespace ov; @@ -766,9 +767,8 @@ using TestSplitBackwardRestrictParams = std::tuple; /* insert transpose function */ -class TSSplitBackwardRestrictTestFixture - : public ::testing::WithParamInterface, - public TransformationTestsF { +class TSSplitBackwardRestrictTestFixture : public ::testing::WithParamInterface, + public TransformationTestsF { public: static std::string get_test_name(const ::testing::TestParamInfo& obj) { PassFactoryPtr pass_factory; diff --git a/src/common/transformations/tests/transpose_sinking/ts_test_utils.cpp b/src/common/transformations/tests/transpose_sinking/ts_test_utils.cpp index b52408b4cd6..b0fd9d45bcd 100644 --- a/src/common/transformations/tests/transpose_sinking/ts_test_utils.cpp +++ b/src/common/transformations/tests/transpose_sinking/ts_test_utils.cpp @@ -4,12 +4,11 @@ #include "ts_test_utils.hpp" +#include "gtest/gtest.h" #include "openvino/frontend/manager.hpp" #include "openvino/opsets/opset10.hpp" #include "openvino/pass/manager.hpp" -#include "gtest/gtest.h" - using namespace std; using namespace ov; using namespace ov::opset10; @@ -84,6 +83,6 @@ std::shared_ptr parameter(ov::element::Type el_type, const PartialShap return std::make_shared(el_type, ps); } -} // utils +} // namespace utils } // namespace testing } // namespace transpose_sinking \ No newline at end of file diff --git a/src/common/transformations/tests/transpose_sinking/ts_test_utils.hpp b/src/common/transformations/tests/transpose_sinking/ts_test_utils.hpp index 134882ebb2a..5bae4e8a810 100644 --- a/src/common/transformations/tests/transpose_sinking/ts_test_utils.hpp +++ b/src/common/transformations/tests/transpose_sinking/ts_test_utils.hpp @@ -4,13 +4,12 @@ #pragma once +#include "common_test_utils/ngraph_test_utils.hpp" +#include "gtest/gtest.h" #include "openvino/frontend/manager.hpp" #include "openvino/opsets/opset10.hpp" #include "openvino/pass/manager.hpp" -#include "common_test_utils/ngraph_test_utils.hpp" -#include "gtest/gtest.h" - namespace transpose_sinking { namespace testing { namespace utils { @@ -68,6 +67,6 @@ std::shared_ptr constant(ov::element::Type el_type, const ov::Shape& s return ov::opset10::Constant::create(el_type, shape, value); } -} // utils +} // namespace utils } // namespace testing } // namespace transpose_sinking \ No newline at end of file diff --git a/src/common/transformations/tests/transpose_sinking/ts_unary_test.cpp b/src/common/transformations/tests/transpose_sinking/ts_unary_test.cpp index 375ed9e1976..7a931d65bf6 100644 --- a/src/common/transformations/tests/transpose_sinking/ts_unary_test.cpp +++ b/src/common/transformations/tests/transpose_sinking/ts_unary_test.cpp @@ -4,12 +4,11 @@ #include "transformations/transpose_sinking/ts_unary.hpp" +#include "common_test_utils/ngraph_test_utils.hpp" +#include "gtest/gtest.h" #include "openvino/frontend/manager.hpp" #include "openvino/opsets/opset10.hpp" #include "openvino/pass/manager.hpp" - -#include "common_test_utils/ngraph_test_utils.hpp" -#include "gtest/gtest.h" #include "ts_test_utils.hpp" using namespace ov;