Skip to content

Commit

Permalink
Merge pull request #2149 from FluxML/bc/undep-instancenorm-tracking
Browse files Browse the repository at this point in the history
Un-deprecate `track_stats` for InstanceNorm
  • Loading branch information
ToucheSir authored Jan 5, 2023
2 parents 7ae67a3 + 0f46582 commit aba285c
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 aba285c

Please sign in to comment.