Update glorot_normal doc

This commit is contained in:
Adarsh Kumar 2020-04-18 03:19:32 +05:30 committed by GitHub
parent d49d121a65
commit d53deb9132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ glorot_uniform(dims...) = (rand(Float32, dims...) .- 0.5f0) .* sqrt(24.0f0 / sum
glorot_normal(dims...) glorot_normal(dims...)
Return an `Array` of size `dims` containing random variables taken from a normal 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 # Examples
```jldoctest; setup = :(using Random; Random.seed!(0)) ```jldoctest; setup = :(using Random; Random.seed!(0))