-
Notifications
You must be signed in to change notification settings - Fork 130
Layers with recurrent hidden state
Albert Zeyer edited this page Oct 27, 2021
·
4 revisions
Basically all layers which define get_rec_initial_extra_outputs
.
Most (all) of them only when inside a rec loop, otherwise they behave just as if you would iterate over the time axis.
-
WindowLayer
:state
[B,W,...] -
CumsumLayer
:state
which is the output itself -
RecLayer
: likeRnnCellLayer
ifunit
is astr
, or like subnet ifunit
is a subnet -
RnnCellLayer
:state
depending onunit
option, e.g.LSTMStateTuple
, or also often the output itself -
SelfAttentionLayer
:k_left
,v_left
-
KenLmStateLayer
:state
,step
,scores
-
CumConcatLayer
:state
which is the output itself -
SubnetworkLayer
: any from subnet -
BaseChoiceLayer
,ChoiceLayer
,DecideLayer
, etc:choice_scores
,choice_src_beams
-
EditDistanceTableLayer
:state
, optionalsource_len
-
MaskedComputationLayer
: any from subnet,_output
-
UnmaskLayer
:t
-
TwoDLSTMLayer
:state
,output
,iteration