From 1eabd3f5265192df32419eac6697297fa0b3aa28 Mon Sep 17 00:00:00 2001 From: seongwoo chae Date: Thu, 29 Aug 2024 15:21:19 +0900 Subject: [PATCH] [tflchef] Add const reference (#13836) This commit adds const reference to tensor variable. ONE-DCO-1.0-Signed-off-by: seongwoo --- compiler/tflchef/core/src/ModelChef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/tflchef/core/src/ModelChef.cpp b/compiler/tflchef/core/src/ModelChef.cpp index 76c48e9bebc..b0b3499be87 100644 --- a/compiler/tflchef/core/src/ModelChef.cpp +++ b/compiler/tflchef/core/src/ModelChef.cpp @@ -869,7 +869,7 @@ void ModelChef::gather_signature_defs(const ::tflchef::ModelRecipe &model_recipe if (rec_tm_input.has_tensor()) { // we can get tensor_index from symbol_table - auto tensor = rec_tm_input.tensor(); + const auto &tensor = rec_tm_input.tensor(); tensor_index = symbol_table[tensor]; } else