Fix unknown tensor type warnings

This commit is contained in:
Kawrakow 2026-04-01 10:38:43 +03:00
parent 93c1e241d8
commit e09a365f0b

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