Skip to content

Commit

Permalink
llama : replacing auto &kv with const auto &kv (ggerganov#2041)
Browse files Browse the repository at this point in the history
* Replacing auto &kv with const auto &kv

* Create codacy.yml

* Delete codacy.yml
  • Loading branch information
mendax0110 authored Jun 28, 2023
1 parent 5b351e9 commit d3494bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d3494bb

Please sign in to comment.