mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-03-23 04:25:15 +00:00
ggml : correct behaviour of ggml_vec_sum_f32 (#390)
This commit is contained in:
parent
08dc705a69
commit
8d7b29cedd
2
ggml.c
2
ggml.c
@ -1109,8 +1109,8 @@ inline static void ggml_vec_sum_f32(const int n, float * s, const float * x) {
|
||||
ggml_float sum = 0.0;
|
||||
for (int i = 0; i < n; ++i) {
|
||||
sum += x[i];
|
||||
*s += sum;
|
||||
}
|
||||
*s = sum;
|
||||
#else
|
||||
vDSP_sve(x, 1, s, n);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user