Skip to content

Commit

Permalink
fix docstring
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Daruwalla <daruwalla.k.public@icloud.com>
  • Loading branch information
CarloLucibello and darsnack committed Mar 9, 2021
1 parent 303fba8 commit 8afedcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,8 @@ end
modules(m)
Return an iterator over non-leaf objects
that can be reached from `m` through recursion
on the children given by [`functor`](@ref).
that can be reached by recursing `m` over
the children given by [`functor`](@ref).
Useful for applying a function (e.g. a regularizer)
over specific modules or subsets of the parameters
Expand All @@ -724,7 +724,7 @@ julia> m2 = Chain(m1, Dense(64, 10))
Chain(Chain(Dense(784, 64), BatchNorm(64, relu)), Dense(64, 10))
julia> Flux.modules(m2)
5-element Vector{Any}:
5-element Array{Any,1}:
Chain(Chain(Dense(784, 64), BatchNorm(64, relu)), Dense(64, 10))
Chain(Dense(784, 64), BatchNorm(64, relu))
Dense(784, 64)
Expand Down

0 comments on commit 8afedcd

Please sign in to comment.