From 9d1d5187f349252365e73adb7a2da66caf29bfcf Mon Sep 17 00:00:00 2001 From: Mike Innes Date: Thu, 23 Aug 2018 10:56:31 +0100 Subject: [PATCH] fix activations for 1.0 --- src/layers/basic.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layers/basic.jl b/src/layers/basic.jl index 5e5a88bd..3e887472 100644 --- a/src/layers/basic.jl +++ b/src/layers/basic.jl @@ -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)