Skip to content

Commit

Permalink
[tflchef] Add const reference
Browse files Browse the repository at this point in the history
This commit adds const reference to tensor variable.

ONE-DCO-1.0-Signed-off-by: seongwoo <[email protected]>
  • Loading branch information
mhs4670go committed Aug 29, 2024
1 parent 0a96e7b commit f44829b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/tflchef/core/src/ModelChef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f44829b

Please sign in to comment.