Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2ad6115

Browse files
committedJul 28, 2023
docstrings
1 parent abf0e13 commit 2ad6115

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/rules.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ julia> o = OptimiserChain(ClipGrad(1.0), Descent(0.1));
653653
julia> m = (zeros(3),);
654654
655655
julia> s = Optimisers.setup(o, m)
656-
(Leaf(OptimiserChain(ClipGrad{Float64}(1.0), Descent{Float64}(0.1)), (nothing, nothing)),)
656+
(Leaf(OptimiserChain(ClipGrad(1.0), Descent(0.1)), (nothing, nothing)),)
657657
658658
julia> Optimisers.update(s, m, ([0.3, 1, 7],))[2] # clips before discounting
659659
([-0.03, -0.1, -0.1],)
@@ -715,7 +715,7 @@ julia> m # model not yet changed
715715
julia> Optimisers.update!(s, m, (x=[0], y=[444]));
716716
717717
julia> m # n=2 gradients applied at once
718-
(x = Float32[-0.651], y = Float32[-20.202])
718+
(x = Float32[-0.651], y = Float32[-20.202002])
719719
```
720720
"""
721721
struct AccumGrad <: AbstractRule

0 commit comments

Comments
 (0)
Please sign in to comment.