From 436069cf9f623e72f5bda81729caf85177c2f12f Mon Sep 17 00:00:00 2001 From: mendax0110 Date: Wed, 28 Jun 2023 20:14:41 +0200 Subject: [PATCH] Replacing auto &kv with const auto &kv --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index 47e11d03c..ef80b4e8b 100644 --- a/llama.cpp +++ b/llama.cpp @@ -2723,7 +2723,7 @@ int llama_apply_lora_from_file_internal(const struct llama_model & model, const // create a name -> tensor map of the model to accelerate lookups std::unordered_map model_tensors; - for (auto & kv: model.tensors_by_name) { + for (const auto & kv: model.tensors_by_name) { model_tensors.insert(kv); }