Closed cyberbeat closed 2 years ago
The idea is that stack(...)
returns a stack/sequence of layers "like" this
, but the returned stack (as you point out) doesn't actually include this
. The nice thing about this is that you can thus conveniently define the sizes of all the layers with a single passed array (otherwise you'd have to define the size of the first layer separately), although I agree the semantics aren't obvious from the function name alone (perhaps something like createStack(...)
would be more clear?)
Oh, thanks, it would be good to clarify this in the javadoc, the name is ok.
This is the code for LSTM stacking:
I wonder, why the first stacked layer does not get
this
as input, butthis.getInputLayer()
?