Hi, I was trying to understand what the difference is between Flux.Chain
vs expanding all operations in a single function.
For instance, given following object:
Chain(Dense(d_in, d_hidden, tanh), Dense(d_hidden, d_hidden, tanh), Dense(d_hidden, d_in,tanh))
if I replace it with
function f(x)
out = Dense(d_in, d_hidden, tanh)(x)
out = Dense(d_hidden, d_hidden, tanh)(out)
out = Dense(d_hidden, d_in,tanh)(out)
end
Does anyone know whether these two are exactly the same in terms of training/testing behaviors?
Thank you!