LSTMLastStepBlock(*args: Any, **kwargs: Any)¶
A block containing a LSTM perception block followed by a Slicing Block keeping only the output of the final time step.
in_keys – One key identifying the input tensors.
out_keys – One key identifying the output tensors.
in_shapes – List of input shapes.
hidden_size – The number of features in the hidden state.
num_layers – Number of recurrent layers.
bidirectional – If True, becomes a bidirectional LSTM.
non_lin – The non-linearity to apply after the final layer.