From 50558a111f4f5f80e5259c4edd64d70de654f12f Mon Sep 17 00:00:00 2001 From: Anton Voronov Date: Thu, 21 Sep 2023 14:00:48 +0000 Subject: [PATCH] minor fixes --- .../src/transformations/rt_info/disable_fp16_compression.cpp | 2 +- src/core/src/pass/serialize.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/transformations/src/transformations/rt_info/disable_fp16_compression.cpp b/src/common/transformations/src/transformations/rt_info/disable_fp16_compression.cpp index 90b084f0be3920..dbe5586dfe67cc 100644 --- a/src/common/transformations/src/transformations/rt_info/disable_fp16_compression.cpp +++ b/src/common/transformations/src/transformations/rt_info/disable_fp16_compression.cpp @@ -5,7 +5,7 @@ #include "transformations/rt_info/disable_fp16_compression.hpp" namespace { -static const std::string& get_postponed_fp16_compression_tag() { +const std::string& get_postponed_fp16_compression_tag() { static const std::string postponed_fp16_compression_tag("postponed_fp16_compression"); return postponed_fp16_compression_tag; } diff --git a/src/core/src/pass/serialize.cpp b/src/core/src/pass/serialize.cpp index a4ac2b8a07e90d..b9f39f0d842db6 100644 --- a/src/core/src/pass/serialize.cpp +++ b/src/core/src/pass/serialize.cpp @@ -51,7 +51,7 @@ struct Edge { // convention. Most of them are the same, but there are exceptions, e.g // Constant (OpenVINO Model name) and Const (IR name). If there will be more // discrepancies discovered, translations needs to be added here. -static const std::unordered_map& get_translate_type_name_translator() { +const std::unordered_map& get_translate_type_name_translator() { static const std::unordered_map translate_type_name_translator = {{"Constant", "Const"}, {"PRelu", "PReLU"}, {"Relu", "ReLU"},