ggml : fix bug in ggml_compute_forward_add_q_f32 (#1918)

This commit is contained in:
l3utterfly 2023-06-18 19:19:16 +08:00 committed by GitHub
parent e1886cf4fe
commit 8596af4277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
ggml.c
View File

@ -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);