Skip to content

Commit ce0e64c

Browse files
committed
Use more data points for the failing doctest
1 parent 004b369 commit ce0e64c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/layers/normalise.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ Does nothing to the input once [`testmode!`](@ref) is true.
131131
```jldoctest
132132
julia> using Statistics
133133
134-
julia> x = randn(20,1);
134+
julia> x = randn(1000,1);
135135
136-
julia> m = Chain(Dense(20 => 10, selu), AlphaDropout(0.5));
136+
julia> m = Chain(Dense(1000 => 1000, selu), AlphaDropout(0.2));
137137
138138
julia> Flux.trainmode!(m);
139139
140140
julia> y = m(x);
141141
142-
julia> isapprox(std(x), std(y), atol=0.6)
142+
julia> isapprox(std(x), std(y), atol=0.2)
143143
true
144144
```
145145
"""

0 commit comments

Comments
 (0)