Skip to content

Export rand32 and friends #2157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Flux.jl
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ export Chain, Dense, Embedding, Maxout, SkipConnection, Parallel, PairwiseFusion
AdaptiveMaxPool, AdaptiveMeanPool, GlobalMaxPool, GlobalMeanPool, MaxPool, MeanPool,
Dropout, AlphaDropout, LayerNorm, BatchNorm, InstanceNorm, GroupNorm,
Upsample, PixelShuffle,
fmap, cpu, gpu, f32, f64,
fmap, cpu, gpu, f32, f64, rand32, randn32, zeros32, ones32,
testmode!, trainmode!

include("optimise/Optimise.jl")
2 changes: 1 addition & 1 deletion src/train.jl
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ It differs from `Optimisers.setup` in that it:

# Example
```jldoctest
julia> model = Dense(2=>1, leakyrelu; init=Flux.ones32);
julia> model = Dense(2=>1, leakyrelu; init=ones32);

julia> opt_state = Flux.setup(Momentum(0.1), model) # this encodes the optimiser and its state
(weight = Leaf(Momentum{Float64}(0.1, 0.9), Float32[0.0 0.0]), bias = Leaf(Momentum{Float64}(0.1, 0.9), Float32[0.0]), σ = ())