From 8596af427722775f0df4a7c90b9af067ba90d4ef Mon Sep 17 00:00:00 2001 From: l3utterfly Date: Sun, 18 Jun 2023 19:19:16 +0800 Subject: ggml : fix bug in ggml_compute_forward_add_q_f32 (#1918) --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index 78c3653..037f0bc 100644 --- a/ggml.c +++ b/ggml.c @@ -7918,7 +7918,7 @@ static void ggml_compute_forward_add_q_f32( void * src0_row = (void *) ((char *) src0->data + (i01*nb01 + i02*nb02 + i03*nb03)); float * src1_row = (float *)((char *) src1->data + (i11*nb11 + i12*nb12 + i13*nb13)); - void * dst_row = (void *) ((char *) dst->data + ( i1*nb1 + i2*nb2 + i3*nb0)); + void * dst_row = (void *) ((char *) dst->data + ( i1*nb1 + i2*nb2 + i3*nb3)); assert(ne00 % 32 == 0); -- cgit v1.2.3