mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 02:44:36 +00:00
ggml : fix bug introduced in #1237
This commit is contained in:
parent
1b6efeab82
commit
ec326d350c
2
ggml.c
2
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) {
|
if (node->src1->type != vec_dot_type) {
|
||||||
cur = GGML_TYPE_SIZE[vec_dot_type]*ggml_nelements(node->src1)/GGML_BLCK_SIZE[vec_dot_type];
|
cur = GGML_TYPE_SIZE[vec_dot_type]*ggml_nelements(node->src1)/GGML_BLCK_SIZE[vec_dot_type];
|
||||||
} else {
|
} else {
|
||||||
GGML_ASSERT(false);
|
cur = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
work_size = MAX(work_size, cur);
|
work_size = MAX(work_size, cur);
|
||||||
|
Loading…
Reference in New Issue
Block a user