diff --git a/src/plugins/intel_cpu/src/compiled_model.cpp b/src/plugins/intel_cpu/src/compiled_model.cpp index 039b96c70f824c..5d54465df734c3 100644 --- a/src/plugins/intel_cpu/src/compiled_model.cpp +++ b/src/plugins/intel_cpu/src/compiled_model.cpp @@ -250,7 +250,7 @@ ov::Any CompiledModel::get_property(const std::string& name) const { const auto stream_mode = config.schedulingCoreType; return stream_mode; } else if (name == ov::hint::model_distribution_policy) { - const auto distribution_policy = config.modelDistributionPolicy; + const auto& distribution_policy = config.modelDistributionPolicy; return distribution_policy; } else if (name == ov::hint::enable_hyper_threading.name()) { const bool use_ht = config.enableHyperThreading; diff --git a/src/plugins/intel_cpu/src/plugin.cpp b/src/plugins/intel_cpu/src/plugin.cpp index e8d502fc0d3922..810539a04d0bed 100644 --- a/src/plugins/intel_cpu/src/plugin.cpp +++ b/src/plugins/intel_cpu/src/plugin.cpp @@ -410,7 +410,7 @@ ov::Any Plugin::get_property(const std::string& name, const ov::AnyMap& options) const auto core_type = engConfig.schedulingCoreType; return core_type; } else if (name == ov::hint::model_distribution_policy) { - const auto distribution_policy = engConfig.modelDistributionPolicy; + const auto& distribution_policy = engConfig.modelDistributionPolicy; return distribution_policy; } else if (name == ov::hint::enable_hyper_threading) { const bool ht_value = engConfig.enableHyperThreading;