From c08d808c3dded80c4ab996acb6a5a9bcb6c65953 Mon Sep 17 00:00:00 2001 From: Juan Altmayer Pizzorno Date: Mon, 23 Mar 2020 10:28:48 -0400 Subject: [PATCH] - fixing/aligning CPU implementation of Batch Normalization; --- src/blas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blas.c b/src/blas.c index 9e160444..80f17a44 100644 --- a/src/blas.c +++ b/src/blas.c @@ -151,7 +151,7 @@ void normalize_cpu(float *x, float *mean, float *variance, int batch, int filter for(f = 0; f < filters; ++f){ for(i = 0; i < spatial; ++i){ int index = b*filters*spatial + f*spatial + i; - x[index] = (x[index] - mean[f])/(sqrt(variance[f]) + .000001f); + x[index] = (x[index] - mean[f])/(sqrt(variance[f] + .00001f)); } } }