Skip to content

Commit dc21964

Browse files
authored
Export rand32 and friends (#2157)
1 parent 408ee52 commit dc21964

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Flux.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export Chain, Dense, Embedding, Maxout, SkipConnection, Parallel, PairwiseFusion
2424
AdaptiveMaxPool, AdaptiveMeanPool, GlobalMaxPool, GlobalMeanPool, MaxPool, MeanPool,
2525
Dropout, AlphaDropout, LayerNorm, BatchNorm, InstanceNorm, GroupNorm,
2626
Upsample, PixelShuffle,
27-
fmap, cpu, gpu, f32, f64,
27+
fmap, cpu, gpu, f32, f64, rand32, randn32, zeros32, ones32,
2828
testmode!, trainmode!
2929

3030
include("optimise/Optimise.jl")

src/train.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ It differs from `Optimisers.setup` in that it:
2727
2828
# Example
2929
```jldoctest
30-
julia> model = Dense(2=>1, leakyrelu; init=Flux.ones32);
30+
julia> model = Dense(2=>1, leakyrelu; init=ones32);
3131
3232
julia> opt_state = Flux.setup(Momentum(0.1), model) # this encodes the optimiser and its state
3333
(weight = Leaf(Momentum{Float64}(0.1, 0.9), Float32[0.0 0.0]), bias = Leaf(Momentum{Float64}(0.1, 0.9), Float32[0.0]), σ = ())

0 commit comments

Comments
 (0)