Skip to content

Commit

Permalink
Lecun Normal added
Browse files Browse the repository at this point in the history
  • Loading branch information
vortex73 committed Jul 28, 2023
1 parent c565052 commit a4e9b5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -738,3 +738,7 @@ function plateau(f, width; distance = -, init_score = 0, min_dist = 1f-6)

return patience(is_plateau, width)
end

function lecun_normal(rng::AbstractRNG, dims::Integer...)
return truncated_normal(rng,dims...,std = sqrt(1/first(nfan(dims...))))
end

0 comments on commit a4e9b5d

Please sign in to comment.