From fd0f1c7a82b574c2c372be14b1d2c48ee4823e42 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Wed, 30 Jan 2019 17:42:19 +0100 Subject: [PATCH] use uncorrected standard deviation in normalise fixes https://github.com/FluxML/Flux.jl/issues/529 --- src/layers/stateless.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layers/stateless.jl b/src/layers/stateless.jl index 14868c5002..69a8017157 100644 --- a/src/layers/stateless.jl +++ b/src/layers/stateless.jl @@ -46,6 +46,6 @@ Normalise each column of `x` to mean 0 and standard deviation 1. """ function normalise(x::AbstractVecOrMat) μ′ = mean(x, dims = 1) - σ′ = std(x, dims = 1, mean = μ′) + σ′ = std(x, dims = 1, mean = μ′, corrected=false) return (x .- μ′) ./ σ′ end