The implementation corresponds to the following algorithm:
Note that if an LSTM layer is desired as the first layer of a neural network, an IdentityLayer should be added to the network as the first layer, and then the LSTM layer should be added.
For more information, see the following.
@article{Graves2013,
author = {Alex Graves and Abdel{-}rahman Mohamed and Geoffrey E. Hinton},
title = {Speech Recognition with Deep Recurrent Neural Networks},
journal = CoRR},
year = {2013},
url = {http://arxiv.org/abs/1303.5778},
}
See also
FastLSTM for a faster LSTM version which combines the calculation of the input, forget, output gates and hidden state in a single step.
Template Parameters
InputDataType
Type of the input data (arma::colvec, arma::mat, arma::sp_mat or arma::cube).
OutputDataType
Type of the output data (arma::colvec, arma::mat, arma::sp_mat or arma::cube).