ggml : fix scalar path for computing norm (#16558)

This commit is contained in:
Georgi Gerganov 2025-10-13 11:22:27 +03:00 committed by GitHub
parent f9bc66c3eb
commit c515fc5771
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -463,9 +463,9 @@ ggml_float ggml_vec_cvar_f32(const int n, float * y, const float * x, const floa
#endif
for (; i < n; ++i) {
float val = x[i] - mean;
y[i] = val;
val *= val;
sum += (ggml_float)val;
y[i] = val;
}
return sum/n;
}