Skip to content

Commit

Permalink
Fix work size calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
saharNooby committed Apr 4, 2023
1 parent 2f6b28b commit 6df43a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ggml.c
Expand Up @@ -9543,7 +9543,8 @@ void ggml_graph_compute(struct ggml_context * ctx, struct ggml_cgraph * cgraph)
} else
#endif
{
cur = GGML_TYPE_SIZE[GGML_TYPE_F32]*(node->src0->ne[0]*node->src0->ne[1]);
// Assuming that src1 is a vector
cur = GGML_TYPE_SIZE[GGML_TYPE_F32] * ggml_nelements(node->src1);
}
} else {
GGML_ASSERT(false);
Expand Down

0 comments on commit 6df43a2

Please sign in to comment.