Skip to content

Commit

Permalink
fix forgotten signature change for Short
Browse files Browse the repository at this point in the history
  • Loading branch information
ablaom committed Jun 21, 2021
1 parent 148349e commit 6628c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builders.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ mutable struct Short <: Builder
σ
end
Short(; n_hidden=0, dropout=0.5, σ=Flux.sigmoid) = Short(n_hidden, dropout, σ)
function build(builder::Short, n, m)
function build(builder::Short, rng, n, m)
n_hidden =
builder.n_hidden == 0 ? round(Int, sqrt(n*m)) : builder.n_hidden
init=Flux.glorot_uniform(rng)
Expand Down

0 comments on commit 6628c4b

Please sign in to comment.