fix activations for 1.0
This commit is contained in:
parent
930776eb1a
commit
9d1d5187f3
@ -38,7 +38,7 @@ function Base.show(io::IO, c::Chain)
|
||||
print(io, ")")
|
||||
end
|
||||
|
||||
activations(c::Chain, x) = accumulate((x, m) -> m(x), x, c.layers)
|
||||
activations(c::Chain, x) = accumulate((x, m) -> m(x), c.layers, init = x)
|
||||
|
||||
"""
|
||||
Dense(in::Integer, out::Integer, σ = identity)
|
||||
|
Loading…
Reference in New Issue
Block a user