From ec326d350c72afd23709a409944728a607188cc0 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Wed, 5 Jul 2023 20:44:11 +0300 Subject: [PATCH] ggml : fix bug introduced in #1237 --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index 635c32eb5..d257c3d65 100644 --- 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);