Replacing auto &kv with const auto &kv

This commit is contained in:
mendax0110 2023-06-28 20:14:41 +02:00
parent 5b351e94d0
commit 436069cf9f

View file

@ -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);
}