From: Georgi Gerganov Date: Wed, 5 Jul 2023 17:38:55 +0000 (+0300) Subject: ggml : fix bug introduced in bfc6d42f8c2141383e4f21e4a030688c71560da0 X-Git-Tag: upstream/0.0.1642~1346 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=43ffec5f7a927094a1148c800f8bf9ec3aadc198;p=pkg%2Fggml%2Fsources%2Fggml ggml : fix bug introduced in bfc6d42f8c2141383e4f21e4a030688c71560da0 --- diff --git a/src/ggml.c b/src/ggml.c index 635c32eb..d257c3d6 100644 --- a/src/ggml.c +++ b/src/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);