Skip to content

Commit

Permalink
swap arguments to vDSP_vdiv call
Browse files Browse the repository at this point in the history
documentation for vDSP_vdiv states: "Note that B comes before A!"
  • Loading branch information
xaedes committed May 8, 2023
1 parent 6cc42de commit cafbb78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -8777,8 +8777,8 @@ static void ggml_compute_forward_div_f32(

#ifdef GGML_USE_ACCELERATE
vDSP_vdiv(
(float *) ((char *) src0->data + i3*nb03 + i2*nb02 + i1*nb01), 1,
(float *) ((char *) src1->data + i3*nb13 + i2*nb12 + i1*nb11), 1,
(float *) ((char *) src0->data + i3*nb03 + i2*nb02 + i1*nb01), 1,
(float *) ((char *) dst->data + i3*nb3 + i2*nb2 + i1*nb1 ), 1,
ne0);
#else
Expand Down

0 comments on commit cafbb78

Please sign in to comment.