From d63fcf2cb46856fa091f6c353b33e09a649dd314 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 3 Mar 2020 13:05:03 -0500 Subject: [PATCH] add depreciation reminder --- src/layers/normalise.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/layers/normalise.jl b/src/layers/normalise.jl index f9ef4de8..858d4986 100644 --- a/src/layers/normalise.jl +++ b/src/layers/normalise.jl @@ -40,6 +40,7 @@ mutable struct Dropout{F,D} active::Union{Bool, Nothing} end +# TODO: deprecate in v0.11 Dropout(p, dims) = Dropout(p, dims, nothing) function Dropout(p; dims = :) @@ -79,6 +80,7 @@ mutable struct AlphaDropout{F} end end +# TODO: deprecate in v0.11 AlphaDropout(p) = AlphaDropout(p, nothing) function (a::AlphaDropout)(x) @@ -161,6 +163,7 @@ mutable struct BatchNorm{F,V,W,N} active::Union{Bool, Nothing} end +# TODO: deprecate in v0.11 BatchNorm(λ, β, γ, μ, σ², ϵ, momentum) = BatchNorm(λ, β, γ, μ, σ², ϵ, momentum, nothing) BatchNorm(chs::Integer, λ = identity; @@ -257,6 +260,7 @@ mutable struct InstanceNorm{F,V,W,N} active::Union{Bool, Nothing} end +# TODO: deprecate in v0.11 InstanceNorm(λ, β, γ, μ, σ², ϵ, momentum) = InstanceNorm(λ, β, γ, μ, σ², ϵ, momentum, nothing) InstanceNorm(chs::Integer, λ = identity; @@ -350,6 +354,7 @@ mutable struct GroupNorm{F,V,W,N,T} active::Union{Bool, Nothing} end +# TODO: deprecate in v0.11 GroupNorm(G, λ, β, γ, μ, σ², ϵ, momentum) = GroupNorm(G, λ, β, γ, μ, σ², ϵ, momentum, nothing) GroupNorm(chs::Integer, G::Integer, λ = identity;