Skip to content

Commit

Permalink
Un-deprecate track_stats for InstanceNorm
Browse files Browse the repository at this point in the history
  • Loading branch information
ToucheSir authored Jan 3, 2023
1 parent ee78ce3 commit 0f46582
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/layers/normalise.jl
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,6 @@ function InstanceNorm(chs::Int, λ=identity;
affine=false, track_stats=false,
ϵ=1f-5, momentum=0.1f0)

if track_stats
Base.depwarn("`track_stats=true` will be removed from InstanceNorm in Flux 0.14. The default value is `track_stats=false`, which will work as before.", :InstanceNorm)
end

β = affine ? initβ(chs) : nothing
γ = affine ? initγ(chs) : nothing
μ = track_stats ? zeros32(chs) : nothing
Expand Down

0 comments on commit 0f46582

Please sign in to comment.