Skip to content

Commit

Permalink
Use @deprecate_binding instead
Browse files Browse the repository at this point in the history
This should preserve the type as a type and fix downstream dispatches.
  • Loading branch information
ToucheSir authored Jun 16, 2022
1 parent 31a9950 commit 7640149
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/deprecations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ GRUCell(in::Integer, out::Integer; kw...) = GRUCell(in => out; kw...)
GRUv3Cell(in::Integer, out::Integer; kw...) = GRUv3Cell(in => out; kw...)

# Optimisers with old naming convention
@deprecate ADAM Adam
@deprecate NADAM NAdam
@deprecate ADAMW AdamW
@deprecate RADAM RAdam
@deprecate OADAM OAdam
@deprecate ADAGrad AdaGrad
@deprecate ADADelta AdaDelta
Base.@deprecate_binding ADAM Adam
Base.@deprecate_binding NADAM NAdam
Base.@deprecate_binding ADAMW AdamW
Base.@deprecate_binding RADAM RAdam
Base.@deprecate_binding OADAM OAdam
Base.@deprecate_binding ADAGrad AdaGrad
Base.@deprecate_binding ADADelta AdaDelta

0 comments on commit 7640149

Please sign in to comment.