From: l3utterfly Date: Sun, 18 Jun 2023 11:19:16 +0000 (+0800) Subject: ggml : fix bug in ggml_compute_forward_add_q_f32 (#1918) X-Git-Tag: gguf-v0.4.0~598 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=8596af427722775f0df4a7c90b9af067ba90d4ef;p=pkg%2Fggml%2Fsources%2Fllama.cpp ggml : fix bug in ggml_compute_forward_add_q_f32 (#1918) --- diff --git a/ggml.c b/ggml.c index 78c36535..037f0bc9 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);