Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Nov 8, 2024
1 parent ab89ed4 commit 6c159f4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ext/OptimisersEnzymeCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ julia> st = Optimisers.setup(Momentum(1/9), x_dx) # acts only on x not on dx
Leaf(Momentum(0.111111, 0.9), Float16[0.0, 0.0, 0.0])
julia> Optimisers.update!(st, x_dx) # mutates both arguments
model_grad.val = Float16[0.8887, 2.0, 3.445]
julia> x_dx
Duplicated{Vector{Float16}}(Float16[0.8887, 2.0, 3.445], Float16[1.0, 0.0, -4.0])
Expand Down

0 comments on commit 6c159f4

Please sign in to comment.