@@ -525,7 +525,7 @@ event::ptr primitive_inst::realloc_if_needed() {
525
525
auto dt_size = ov::element::Type (actual_layout.data_type ).bitwidth ();
526
526
// read_value/assign nodes are supposed to always use variable memory
527
527
if (auto stateful_prim = dynamic_cast <memory_state::variable*>(this )) {
528
- std::string variable_id = stateful_prim->variable_id ();
528
+ auto & variable_id = stateful_prim->variable_id ();
529
529
auto & variable = get_network ().get_variable (variable_id);
530
530
if (_node->is_type <kv_cache>()) {
531
531
// Reuse state memory as output for kv cache if possible
@@ -1354,7 +1354,7 @@ bool primitive_inst::has_inner_networks() const {
1354
1354
1355
1355
event::ptr primitive_inst::execute (const std::vector<event::ptr>& events) {
1356
1356
OV_ITT_SCOPED_TASK (ov::intel_gpu::itt::domains::intel_gpu_plugin, openvino::itt::handle (" primitive_inst::execute: " + id ()));
1357
- const auto primitive_id = id ();
1357
+ const auto & primitive_id = id ();
1358
1358
OPENVINO_ASSERT (_has_valid_input, primitive_id, " has invalid/unset input" );
1359
1359
GPU_DEBUG_GET_INSTANCE (debug_config);
1360
1360
GPU_DEBUG_TRACE_DETAIL << " -----------------------------------------------------------------" << std::endl;
@@ -1497,7 +1497,7 @@ event::ptr primitive_inst::execute(const std::vector<event::ptr>& events) {
1497
1497
if (out_of_order_queue || (_impl->is_cpu () && !can_be_optimized ()) || (can_be_optimized () && needs_completion_event () && !is_output ())) {
1498
1498
dependencies.reserve (dependencies.size () + _exec_deps.size ());
1499
1499
for (auto & input : _exec_deps) {
1500
- auto id = input->id ();
1500
+ auto & id = input->id ();
1501
1501
try {
1502
1502
// if the requested event does not exists it means that it has not been executed, so the processing_order is
1503
1503
// wrong or synchronization failed.
0 commit comments