From: Wei Wang Date: Tue, 21 Jul 2026 21:44:22 +0000 (+0800) Subject: hexagon: check tensor type when reusing descriptors (#25968) X-Git-Tag: upstream/0.0.10438~354 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=71102a73f2042d9aacae2d6dc70874a8611b8361;p=pkg%2Fggml%2Fsources%2Fllama.cpp hexagon: check tensor type when reusing descriptors (#25968) --- diff --git a/ggml/src/ggml-hexagon/ggml-hexagon.cpp b/ggml/src/ggml-hexagon/ggml-hexagon.cpp index 34f1ff57b..54d313ade 100644 --- a/ggml/src/ggml-hexagon/ggml-hexagon.cpp +++ b/ggml/src/ggml-hexagon/ggml-hexagon.cpp @@ -1286,7 +1286,8 @@ struct ggml_hexagon_opbatch { int64_t nb2 = is_repack ? nb1 * ne1 : t->nb[2]; int64_t nb3 = is_repack ? nb2 * t->ne[2] : t->nb[3]; - return (h->ne[0] == ne0) && (h->ne[1] == ne1) && (h->ne[2] == t->ne[2]) && (h->ne[3] == t->ne[3]) && + return (h->type == t->type) && + (h->ne[0] == ne0) && (h->ne[1] == ne1) && (h->ne[2] == t->ne[2]) && (h->ne[3] == t->ne[3]) && (h->nb[0] == t->nb[0]) && (h->nb[1] == nb1) && (h->nb[2] == nb2) && (h->nb[3] == nb3); }