Skip to content

Commit 3b33493

Browse files
committed
fix doctest failure
1 parent ea26f45 commit 3b33493

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/src/models/basics.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ julia> gs = gradient(params(x, y)) do
4545
Grads(...)
4646
4747
julia> gs[x]
48-
2-element Vector{Int64}:
49-
0
50-
2
48+
2-element Vector{Float64}:
49+
0.0
50+
2.0
5151
5252
julia> gs[y]
53-
2-element Vector{Int64}:
54-
0
55-
-2
53+
2-element Vector{Float64}:
54+
0.0
55+
-2.0
5656
```
5757

5858
Here, `gradient` takes a zero-argument function; no arguments are necessary because the `params` tell it what to differentiate.

0 commit comments

Comments
 (0)