Repack: make sure number of rows is a multiple of the packing

This commit is contained in:
Iwan Kawrakow
2024-12-17 15:14:36 +02:00
parent b0e826d5b4
commit e716ae7778

View File

@@ -5096,6 +5096,7 @@ void iqk_repack_tensor(struct ggml_tensor * tensor) {
auto it = k_map.find(tensor->type);
if (it == k_map.end()) return;
if (tensor->ne[1] % it->second.num_rows) return;
auto& r = it->second;