From 2de84ce79feb05cdcb12054b8c1b067489ae9230 Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Wed, 25 Sep 2019 13:59:32 +0200 Subject: [PATCH] simplify --- src/layers/basic.jl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/layers/basic.jl b/src/layers/basic.jl index e3fb605b..39f0d759 100644 --- a/src/layers/basic.jl +++ b/src/layers/basic.jl @@ -211,13 +211,9 @@ end @functor SkipConnection function (skip::SkipConnection)(input) - #We apply the layers to the input and return the result of the application of the layers and the original input skip.connection(skip.layers(input), input) end function Base.show(io::IO, b::SkipConnection) - print(io, "SkipConnection(") - b.layers isa Chain ? print(io, "Chain(", join(b.layers, ", "), "), ") : - print(io, b.layers, ", ") - print(io, b.connection, ")") + print(io, "SkipConnection(", b.layers, ", ", b.connection, ")") end