ggml : fix scalar path for computing norm (llama/16558)

This commit is contained in:
Georgi Gerganov 2025-10-13 11:22:27 +03:00
parent 53e21364a6
commit ccac1b4772
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;
}