Skip to content

Commit 7640149

Browse files
authored
Use @deprecate_binding instead
This should preserve the type as a type and fix downstream dispatches.
1 parent 31a9950 commit 7640149

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/deprecations.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ GRUCell(in::Integer, out::Integer; kw...) = GRUCell(in => out; kw...)
7373
GRUv3Cell(in::Integer, out::Integer; kw...) = GRUv3Cell(in => out; kw...)
7474

7575
# Optimisers with old naming convention
76-
@deprecate ADAM Adam
77-
@deprecate NADAM NAdam
78-
@deprecate ADAMW AdamW
79-
@deprecate RADAM RAdam
80-
@deprecate OADAM OAdam
81-
@deprecate ADAGrad AdaGrad
82-
@deprecate ADADelta AdaDelta
76+
Base.@deprecate_binding ADAM Adam
77+
Base.@deprecate_binding NADAM NAdam
78+
Base.@deprecate_binding ADAMW AdamW
79+
Base.@deprecate_binding RADAM RAdam
80+
Base.@deprecate_binding OADAM OAdam
81+
Base.@deprecate_binding ADAGrad AdaGrad
82+
Base.@deprecate_binding ADADelta AdaDelta

0 commit comments

Comments
 (0)