mirror of https://github.com/AlexeyAB/darknet.git
- adjusted BatchNorm epsilon of normalize_cpu to be the same as
normalize_gpu's kernel;
This commit is contained in:
parent
6cbb75d10b
commit
a34682e67c
|
@ -289,7 +289,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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue