We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44fe8e4 commit 87fe70fCopy full SHA for 87fe70f
src/layers/basic.jl
@@ -50,9 +50,6 @@ end
50
51
(c::Chain)(x) = _applychain(c.layers, x)
52
53
-# Calculates the forward results of the complete chain provided as a `Tuple`, `AbstractVector`,
54
-# or a `NamedTuple` of layers with `x` as model input. Users are encouraged to call a chain
55
-# instead of using this function directly.
56
@generated function _applychain(layers::Tuple{Vararg{<:Any,N}}, x) where {N}
57
symbols = vcat(:x, [gensym() for _ in 1:N])
58
calls = [:($(symbols[i+1]) = layers[$i]($(symbols[i]))) for i in 1:N]
0 commit comments