fix activations for 1.0

This commit is contained in:
Mike Innes 2018-08-23 10:56:31 +01:00
parent 930776eb1a
commit 9d1d5187f3

View File

@ -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)