From 5f452cdb25fddbb268b0319719f6b2986a9112b0 Mon Sep 17 00:00:00 2001 From: Vladimir Paramuzov Date: Wed, 18 Dec 2024 17:04:49 +0400 Subject: [PATCH] code style Signed-off-by: Vladimir Paramuzov --- .../transformations/common_optimizations/sdpa_fusion.hpp | 2 +- .../common_optimizations/sdpa_scale_fusion.hpp | 2 +- .../src/transformations/common_optimizations/sdpa_fusion.cpp | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/common/transformations/include/transformations/common_optimizations/sdpa_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/sdpa_fusion.hpp index 87083900336c75..84383b777604ea 100644 --- a/src/common/transformations/include/transformations/common_optimizations/sdpa_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/sdpa_fusion.hpp @@ -52,7 +52,7 @@ namespace pass { /// └─────────┘ class TRANSFORMATIONS_API SDPAFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SDPAFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("SDPAFusion", "0"); SDPAFusion(); }; diff --git a/src/common/transformations/include/transformations/common_optimizations/sdpa_scale_fusion.hpp b/src/common/transformations/include/transformations/common_optimizations/sdpa_scale_fusion.hpp index 46f095da997326..cae0363e785f4e 100644 --- a/src/common/transformations/include/transformations/common_optimizations/sdpa_scale_fusion.hpp +++ b/src/common/transformations/include/transformations/common_optimizations/sdpa_scale_fusion.hpp @@ -50,7 +50,7 @@ namespace pass { /// 2. Q_scale * SDPA_Scale == 1 or K_scale * SDPA_Scale == 1 class TRANSFORMATIONS_API SDPAScaleFusion : public ov::pass::MatcherPass { public: - OPENVINO_RTTI("SDPAScaleFusion", "0"); + OPENVINO_MATCHER_PASS_RTTI("SDPAScaleFusion", "0"); SDPAScaleFusion(); }; diff --git a/src/common/transformations/src/transformations/common_optimizations/sdpa_fusion.cpp b/src/common/transformations/src/transformations/common_optimizations/sdpa_fusion.cpp index b92bfe999114b9..fc581580f70001 100644 --- a/src/common/transformations/src/transformations/common_optimizations/sdpa_fusion.cpp +++ b/src/common/transformations/src/transformations/common_optimizations/sdpa_fusion.cpp @@ -3,6 +3,7 @@ // #include "transformations/common_optimizations/sdpa_fusion.hpp" + #include "openvino/core/rt_info.hpp" #include "openvino/core/type.hpp" #include "openvino/op/add.hpp" @@ -30,7 +31,8 @@ SDPAFusion::SDPAFusion() { auto mask = makePattern(); auto k_transpose_order = pattern::wrap_type([](const Output& node) { - auto axis_order = std::dynamic_pointer_cast(node.get_node_shared_ptr())->cast_vector(); + auto axis_order = + std::dynamic_pointer_cast(node.get_node_shared_ptr())->cast_vector(); return axis_order == std::vector{0, 1, 3, 2}; });