From d103894a15378ca6f23959c298e50941704f9af3 Mon Sep 17 00:00:00 2001 From: eshoguli Date: Thu, 28 Sep 2023 14:08:10 +0100 Subject: [PATCH] [LPT] infrastructure quick fix --- .../include/low_precision/common/precisions_restriction.hpp | 2 +- .../include/low_precision/low_precision.hpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/low_precision_transformations/include/low_precision/common/precisions_restriction.hpp b/src/common/low_precision_transformations/include/low_precision/common/precisions_restriction.hpp index 31d820d1eb4aef..7301d13b27b3d2 100644 --- a/src/common/low_precision_transformations/include/low_precision/common/precisions_restriction.hpp +++ b/src/common/low_precision_transformations/include/low_precision/common/precisions_restriction.hpp @@ -74,7 +74,7 @@ class PrecisionsRestriction { } template - static PrecisionsByPorts getPrecisionsByOperationType(std::vector& restrictions) { + static PrecisionsByPorts getPrecisionsByOperationType(const std::vector& restrictions) { for (const auto& restriction : restrictions) { if (restriction.operationType == T::get_type_info_static()) { return restriction.precisionsByPorts; diff --git a/src/common/low_precision_transformations/include/low_precision/low_precision.hpp b/src/common/low_precision_transformations/include/low_precision/low_precision.hpp index d3fb4b7ec55834..9e834b0342c00b 100644 --- a/src/common/low_precision_transformations/include/low_precision/low_precision.hpp +++ b/src/common/low_precision_transformations/include/low_precision/low_precision.hpp @@ -48,9 +48,9 @@ class ov::pass::low_precision::MarkupOptimizations : public ov::pass::ModelPass const AttributeParameters& params); bool run_on_model(const std::shared_ptr& m) override; private: - const std::vector& precisionRestrictions; - const std::vector& quantizationRestrictions; - const AttributeParameters& params; + const std::vector precisionRestrictions; + const std::vector quantizationRestrictions; + const AttributeParameters params; }; class ov::pass::low_precision::TypeRelaxedReplacer : public ov::pass::GraphRewrite {