Skip to content

Commit f819c60

Browse files
dudutaggerganov
andauthored
Update ggml/src/ggml-cpu/ops.cpp
Co-authored-by: Georgi Gerganov <[email protected]>
1 parent 31eb135 commit f819c60

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ggml/src/ggml-cpu/ops.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3480,15 +3480,11 @@ static void ggml_compute_forward_norm_f32(
34803480
float variance = 0;
34813481

34823482
#ifdef GGML_USE_ACCELERATE
3483-
34843483
mean = -mean;
34853484
vDSP_vsadd(x, 1, &mean, y, 1, ne00);
34863485
vDSP_measqv(y, 1, &variance, ne00);
3487-
34883486
#else
3489-
34903487
variance = ggml_vec_cvar_f32(ne00, y, x, mean);
3491-
34923488
#endif //GGML_USE_ACCELERATE
34933489

34943490
const float scale = 1.0f/sqrtf(variance + eps);

0 commit comments

Comments
 (0)