Skip to content

Commit 780bba4

Browse files
authored
Fix reference to inner gradient structure in docs basics.md (#2622)
1 parent 3d33e3a commit 780bba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/guide/models/basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ julia> grad4 = gradient(|>, 5, poly4)
166166
(1.0, (outer = (θ3 = [1.0, 17.5, 306.25],), inner = (θ3 = [0.5, 2.5, 12.5],)))
167167
```
168168

169-
Here `grad4.inner.θ3` corresponds to `poly4.inner.θ3`.
169+
Here `grad4[2].inner.θ3` corresponds to `poly4.inner.θ3`.
170170
These matching nested structures are at the core of how Flux works.
171171

172172
!!! note "Implicit gradients"

0 commit comments

Comments
 (0)