From d53deb9132b06188bea53bee647aa35d62d25c35 Mon Sep 17 00:00:00 2001 From: Adarsh Kumar <45385384+AdarshKumar712@users.noreply.github.com> Date: Sat, 18 Apr 2020 03:19:32 +0530 Subject: [PATCH] Update glorot_normal doc --- src/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index c666caca..7842c961 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -24,7 +24,7 @@ glorot_uniform(dims...) = (rand(Float32, dims...) .- 0.5f0) .* sqrt(24.0f0 / sum glorot_normal(dims...) Return an `Array` of size `dims` containing random variables taken from a normal -distribution with mean 0 and standard deviation `(2 / sum(dims))`. +distribution with mean 0 and standard deviation `sqrt(2 / sum(dims))`. # Examples ```jldoctest; setup = :(using Random; Random.seed!(0))