Skip to content

Commit d3494bb

Browse files
authored
llama : replacing auto &kv with const auto &kv (ggml-org#2041)
* Replacing auto &kv with const auto &kv * Create codacy.yml * Delete codacy.yml
1 parent 5b351e9 commit d3494bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2723,7 +2723,7 @@ int llama_apply_lora_from_file_internal(const struct llama_model & model, const
27232723

27242724
// create a name -> tensor map of the model to accelerate lookups
27252725
std::unordered_map<std::string, struct ggml_tensor*> model_tensors;
2726-
for (auto & kv: model.tensors_by_name) {
2726+
for (const auto & kv: model.tensors_by_name) {
27272727
model_tensors.insert(kv);
27282728
}
27292729

0 commit comments

Comments
 (0)