Skip to content

Commit fab8df3

Browse files
fix one more doctest
1 parent 62662e9 commit fab8df3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/training/training.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ At first glance it may seem strange that the model that we want to train is not
6464

6565
## Model parameters
6666

67-
The model to be trained must have a set of tracked parameters that are used to calculate the gradients of the objective function. In the [basics](../models/basics.md) section it is explained how to create models with such parameters. The second argument of the function `Flux.train!` must be an object containing those parameters, which can be obtained from a model `m` as `params(m)`.
67+
The model to be trained must have a set of tracked parameters that are used to calculate the gradients of the objective function. In the [basics](../models/basics.md) section it is explained how to create models with such parameters. The second argument of the function `Flux.train!` must be an object containing those parameters, which can be obtained from a model `m` as `Flux.params(m)`.
6868

6969
Such an object contains a reference to the model's parameters, not a copy, such that after their training, the model behaves according to their updated values.
7070

src/layers/conv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Conv((3,), 4 => 5, σ) # 65 parameters
121121
julia> c1(randn(100, 4, 64)) |> size
122122
(98, 5, 64)
123123
124-
julia> params(c1) |> length
124+
julia> Flux.params(c1) |> length
125125
2
126126
```
127127
"""

0 commit comments

Comments
 (0)