aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-07-05 20:44:11 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-07-05 20:44:11 +0300
commitec326d350c72afd23709a409944728a607188cc0 (patch)
tree8ec3ba34625bb285c8f088f8d97bc1c98fc8ff70
parent1b6efeab829f3eeda5b39bd47624bb60b3531b88 (diff)
ggml : fix bug introduced in #1237
-rw-r--r--ggml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ggml.c b/ggml.c
index 635c32e..d257c3d 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);