From 4313fb2009c9e24069dd88d59e8e23911a50a6f1 Mon Sep 17 00:00:00 2001 From: Anton Voronov Date: Thu, 21 Sep 2023 10:45:27 +0000 Subject: [PATCH] review fix --- src/common/snippets/include/snippets/pass/collapse_subgraph.hpp | 2 +- src/common/snippets/src/pass/collapse_subgraph.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/snippets/include/snippets/pass/collapse_subgraph.hpp b/src/common/snippets/include/snippets/pass/collapse_subgraph.hpp index 556c21bb25513a..ed6faab48420e6 100644 --- a/src/common/snippets/include/snippets/pass/collapse_subgraph.hpp +++ b/src/common/snippets/include/snippets/pass/collapse_subgraph.hpp @@ -41,7 +41,7 @@ class TokenizeSnippets: public ov::pass::MatcherPass { static bool AppropriateForSubgraph(const std::shared_ptr&); - static const std::set get_supported_element_types(); + static const std::set& get_supported_element_types(); }; } // namespace pass diff --git a/src/common/snippets/src/pass/collapse_subgraph.cpp b/src/common/snippets/src/pass/collapse_subgraph.cpp index e58dc1f8c0a1f3..b437c4c37d1741 100644 --- a/src/common/snippets/src/pass/collapse_subgraph.cpp +++ b/src/common/snippets/src/pass/collapse_subgraph.cpp @@ -227,7 +227,7 @@ auto get_num_result_children(const std::shared_ptr &node) -> size_t } } // namespace -const std::set ov::snippets::pass::TokenizeSnippets::get_supported_element_types() { +const std::set& ov::snippets::pass::TokenizeSnippets::get_supported_element_types() { static const std::set supported_element_types = { ov::element::f32, ov::element::bf16, ov::element::i8, ov::element::u8 }; return supported_element_types;