]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : fix bug introduced in #1237
authorGeorgi Gerganov <redacted>
Wed, 5 Jul 2023 17:44:11 +0000 (20:44 +0300)
committerGeorgi Gerganov <redacted>
Wed, 5 Jul 2023 17:44:11 +0000 (20:44 +0300)
ggml.c

diff --git a/ggml.c b/ggml.c
index 635c32eb5e213bacf7b5d50823cffbeaa31d3e6b..d257c3d657b34681cce41893456a64e7fa5dbdee 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -16202,7 +16202,7 @@ void ggml_graph_compute(struct ggml_context * ctx, struct ggml_cgraph * cgraph)
                         if (node->src1->type != vec_dot_type) {
                             cur = GGML_TYPE_SIZE[vec_dot_type]*ggml_nelements(node->src1)/GGML_BLCK_SIZE[vec_dot_type];
                         } else {
-                            GGML_ASSERT(false);
+                            cur = 0;
                         }
 
                         work_size = MAX(work_size, cur);