Skip to content

Commit ea148c0

Browse files
Update src/layers/basic.jl
Co-authored-by: Brian Chen <[email protected]>
1 parent e867425 commit ea148c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/layers/basic.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ Calculates the forward results of each layers in Chain `c` with `input` as model
123123
124124
# Examples
125125
126-
```jldoctest; filter = r"[+-]?([0-9]*[.])?[0-9]+"
126+
```jldoctest
127127
julia> using Flux: activations
128128
129-
julia> c = Chain(Dense(10 => 5, σ), Dense(5 => 2), softmax);
129+
julia> c = Chain(x -> x + 1, x -> x * 2, x -> x ^ 3);
130130
131-
julia> activations(c, rand(10)) # will output a tuple of 3 lists (with length = 5, 2, and 2) as our chain has 3 layers
132-
([0.3274892431795043, 0.5360197770386552, 0.3447464835514667, 0.5273025865532305, 0.7513168089280781], [-0.3533774181890544, -0.010937055274926138], [0.4152168057978045, 0.5847831942021956])
131+
julia> activations(c, 1)
132+
(2, 4, 64)
133133
```
134134
"""
135135
activations(c::Chain, input) = extraChain(Tuple(c.layers), input)

0 commit comments

Comments
 (0)