diff options
author | m3ndax <adrian.goessl@outlook.com> | 2023-06-28 20:39:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 21:39:08 +0300 |
commit | d3494bb86bf7ad5b0b60aae0220ea576f273b5c0 (patch) | |
tree | 84aad5f57914497065ee4d63a53cebc08d93e00e | |
parent | 5b351e94d041742cd50ffcf2d44718d63bab398a (diff) |
llama : replacing auto &kv with const auto &kv (#2041)
* Replacing auto &kv with const auto &kv
* Create codacy.yml
* Delete codacy.yml
-rw-r--r-- | llama.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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<std::string, struct ggml_tensor*> model_tensors; - for (auto & kv: model.tensors_by_name) { + for (const auto & kv: model.tensors_by_name) { model_tensors.insert(kv); } |