Skip to content

Commit

Permalink
move up two more
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Nov 25, 2024
1 parent 467ea36 commit bab47cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/deprecations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ Zygote._pullback(::Zygote.Context{true}, ::typeof(params), m...) = params(m), _

include("optimise/Optimise.jl") ## deprecated Module

Base.@deprecate_binding Optimiser OptimiserChain
Base.@deprecate_binding ClipValue ClipGrad

# TODO this friendly error should go in Optimisers.jl.
# remove after https://github.com/FluxML/Optimisers.jl/pull/181
Expand All @@ -151,9 +153,6 @@ end
### v0.16 deprecations ####################


# Enable these when 0.16 is released, and delete const ClipGrad = Optimise.ClipValue etc:
# Base.@deprecate_binding Optimiser OptimiserChain
# Base.@deprecate_binding ClipValue ClipGrad

# train!(loss::Function, ps::Zygote.Params, data, opt) = throw(ArgumentError(
# """On Flux 0.16, `train!` no longer accepts implicit `Zygote.Params`.
Expand Down

0 comments on commit bab47cf

Please sign in to comment.