Fix unknown tensor type warnings (#1565)

This commit is contained in:
Kawrakow 2026-04-01 09:45:32 +02:00 committed by GitHub
parent 93c1e241d8
commit 6ea7f321e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -1861,6 +1861,9 @@ llm_tensor llm_tensor_type(llm_arch arch, const std::string & tensor_name, int i
if (tensor_name.find(this_name) == 0) {
return entry.first;
}
if (tensor_name.find(base_name) == 0) {
return entry.first;
}
}
return LLM_TENSOR_UNKNOWN;
}