From d3494bb86bf7ad5b0b60aae0220ea576f273b5c0 Mon Sep 17 00:00:00 2001 From: m3ndax Date: Wed, 28 Jun 2023 20:39:08 +0200 Subject: llama : replacing auto &kv with const auto &kv (#2041) * Replacing auto &kv with const auto &kv * Create codacy.yml * Delete codacy.yml --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index 47e11d0..ef80b4e 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); } -- cgit v1.2.3