\section{Fast\+L\+S\+TM$<$ Input\+Data\+Type, Output\+Data\+Type $>$ Class Template Reference}
\label{classmlpack_1_1ann_1_1FastLSTM}\index{Fast\+L\+S\+T\+M$<$ Input\+Data\+Type, Output\+Data\+Type $>$@{Fast\+L\+S\+T\+M$<$ Input\+Data\+Type, Output\+Data\+Type $>$}}


An implementation of a faster version of the Fast \doxyref{L\+S\+TM}{p.}{classmlpack_1_1ann_1_1LSTM} network layer.  


\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef Output\+Data\+Type\+::elem\+\_\+type \textbf{ Elem\+Type}
\item 
typedef Input\+Data\+Type\+::elem\+\_\+type \textbf{ Input\+Elem\+Type}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Fast\+L\+S\+TM} ()
\begin{DoxyCompactList}\small\item\em Create the Fast \doxyref{L\+S\+TM}{p.}{classmlpack_1_1ann_1_1LSTM} object. \end{DoxyCompactList}\item 
\textbf{ Fast\+L\+S\+TM} (const size\+\_\+t in\+Size, const size\+\_\+t out\+Size, const size\+\_\+t rho=std\+::numeric\+\_\+limits$<$ size\+\_\+t $>$\+::max())
\begin{DoxyCompactList}\small\item\em Create the Fast \doxyref{L\+S\+TM}{p.}{classmlpack_1_1ann_1_1LSTM} layer object using the specified parameters. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Input\+Type , typename Error\+Type , typename Gradient\+Type $>$ }\\void \textbf{ Backward} (const Input\+Type \&input, const Error\+Type \&gy, Gradient\+Type \&g)
\begin{DoxyCompactList}\small\item\em Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backwards trough f. \end{DoxyCompactList}\item 
Output\+Data\+Type const  \& \textbf{ Delta} () const
\begin{DoxyCompactList}\small\item\em Get the delta. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Delta} ()
\begin{DoxyCompactList}\small\item\em Modify the delta. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Input\+Type , typename Output\+Type $>$ }\\void \textbf{ Forward} (const Input\+Type \&input, Output\+Type \&output)
\begin{DoxyCompactList}\small\item\em Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activity forward through f. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Input\+Type , typename Error\+Type , typename Gradient\+Type $>$ }\\void \textbf{ Gradient} (const Input\+Type \&input, const Error\+Type \&error, Gradient\+Type \&gradient)
\item 
Output\+Data\+Type const  \& \textbf{ Gradient} () const
\begin{DoxyCompactList}\small\item\em Get the gradient. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Gradient} ()
\begin{DoxyCompactList}\small\item\em Modify the gradient. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ In\+Size} () const
\begin{DoxyCompactList}\small\item\em Get the number of input units. \end{DoxyCompactList}\item 
Output\+Data\+Type const  \& \textbf{ Output\+Parameter} () const
\begin{DoxyCompactList}\small\item\em Get the output parameter. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Output\+Parameter} ()
\begin{DoxyCompactList}\small\item\em Modify the output parameter. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ Out\+Size} () const
\begin{DoxyCompactList}\small\item\em Get the number of output units. \end{DoxyCompactList}\item 
Output\+Data\+Type const  \& \textbf{ Parameters} () const
\begin{DoxyCompactList}\small\item\em Get the parameters. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Parameters} ()
\begin{DoxyCompactList}\small\item\em Modify the parameters. \end{DoxyCompactList}\item 
void \textbf{ Reset} ()
\item 
void \textbf{ Reset\+Cell} (const size\+\_\+t size)
\item 
size\+\_\+t \textbf{ Rho} () const
\begin{DoxyCompactList}\small\item\em Get the maximum number of steps to backpropagate through time (B\+P\+TT). \end{DoxyCompactList}\item 
size\+\_\+t \& \textbf{ Rho} ()
\begin{DoxyCompactList}\small\item\em Modify the maximum number of steps to backpropagate through time (B\+P\+TT). \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Archive $>$ }\\void \textbf{ serialize} (Archive \&ar, const unsigned int)
\begin{DoxyCompactList}\small\item\em Serialize the layer. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Input\+Data\+Type = arma\+::mat, typename Output\+Data\+Type = arma\+::mat$>$\newline
class mlpack\+::ann\+::\+Fast\+L\+S\+T\+M$<$ Input\+Data\+Type, Output\+Data\+Type $>$}

An implementation of a faster version of the Fast \doxyref{L\+S\+TM}{p.}{classmlpack_1_1ann_1_1LSTM} network layer. 

Basically by combining the calculation of the input, forget, output gates and hidden state in a single step. The standard formula changes as follows\+:

\begin{eqnarray} i &=& sigmoid(W \cdot x + W \cdot h + b) \\ f &=& sigmoid(W \cdot x + W \cdot h + b) \\ z &=& tanh(W \cdot x + W \cdot h + b) \\ c &=& f \cdot c + i \cdot z \\ o &=& sigmoid(W \cdot x + W \cdot h + b) \\ h &=& o \cdot tanh(c) \end{eqnarray}

Note that \doxyref{Fast\+L\+S\+TM}{p.}{classmlpack_1_1ann_1_1FastLSTM} network layer does not use peephole connections between the cell and gates.

Note also that if a \doxyref{Fast\+L\+S\+TM}{p.}{classmlpack_1_1ann_1_1FastLSTM} layer is desired as the first layer of a neural network, an Identity\+Layer should be added to the network as the first layer, and then the \doxyref{Fast\+L\+S\+TM}{p.}{classmlpack_1_1ann_1_1FastLSTM} layer should be added.

For more information, see the following.


\begin{DoxyCode}
@article\{Hochreiter1997,
  author  = \{Hochreiter, Sepp and Schmidhuber, J\(\backslash\)\textcolor{stringliteral}{"\{u\}rgen\},}
\textcolor{stringliteral}{  title   = \{Long Short-term Memory\},}
\textcolor{stringliteral}{  journal = \{Neural Comput.\},}
\textcolor{stringliteral}{  year    = \{1997\},}
\textcolor{stringliteral}{  url     = \{https://www.bioinf.jku.at/publications/older/2604.pdf\}}
\textcolor{stringliteral}{\}}
\end{DoxyCode}


\begin{DoxySeeAlso}{See also}
\doxyref{L\+S\+TM}{p.}{classmlpack_1_1ann_1_1LSTM} for a standard implementation of the \doxyref{L\+S\+TM}{p.}{classmlpack_1_1ann_1_1LSTM} layer.
\end{DoxySeeAlso}

\begin{DoxyTemplParams}{Template Parameters}
{\em Input\+Data\+Type} & Type of the input data (arma\+::colvec, arma\+::mat, arma\+::sp\+\_\+mat or arma\+::cube). \\
\hline
{\em Output\+Data\+Type} & Type of the output data (arma\+::colvec, arma\+::mat, arma\+::sp\+\_\+mat or arma\+::cube). \\
\hline
\end{DoxyTemplParams}


Definition at line 66 of file fast\+\_\+lstm.\+hpp.



\subsection{Member Typedef Documentation}
\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a89515672ea25fdeac27882c6321359b5}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Elem\+Type@{Elem\+Type}}
\index{Elem\+Type@{Elem\+Type}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Elem\+Type}
{\footnotesize\ttfamily typedef Output\+Data\+Type\+::elem\+\_\+type \textbf{ Elem\+Type}}



Definition at line 71 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_ae2534be2f88723ad9fa50754d7e62747}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Input\+Elem\+Type@{Input\+Elem\+Type}}
\index{Input\+Elem\+Type@{Input\+Elem\+Type}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Input\+Elem\+Type}
{\footnotesize\ttfamily typedef Input\+Data\+Type\+::elem\+\_\+type \textbf{ Input\+Elem\+Type}}



Definition at line 70 of file fast\+\_\+lstm.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_ac3a6d36814d34de8a9054b3eb9a406e7}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Fast\+L\+S\+TM@{Fast\+L\+S\+TM}}
\index{Fast\+L\+S\+TM@{Fast\+L\+S\+TM}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Fast\+L\+S\+T\+M()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \textbf{ Fast\+L\+S\+TM} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Create the Fast \doxyref{L\+S\+TM}{p.}{classmlpack_1_1ann_1_1LSTM} object. 

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_aba0784b6f39745665a83d168e0ee70f0}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Fast\+L\+S\+TM@{Fast\+L\+S\+TM}}
\index{Fast\+L\+S\+TM@{Fast\+L\+S\+TM}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Fast\+L\+S\+T\+M()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \textbf{ Fast\+L\+S\+TM} (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{in\+Size,  }\item[{const size\+\_\+t}]{out\+Size,  }\item[{const size\+\_\+t}]{rho = {\ttfamily std\+:\+:numeric\+\_\+limits$<$~size\+\_\+t~$>$\+:\+:max()} }\end{DoxyParamCaption})}



Create the Fast \doxyref{L\+S\+TM}{p.}{classmlpack_1_1ann_1_1LSTM} layer object using the specified parameters. 


\begin{DoxyParams}{Parameters}
{\em in\+Size} & The number of input units. \\
\hline
{\em out\+Size} & The number of output units. \\
\hline
{\em rho} & Maximum number of steps to backpropagate through time (B\+P\+TT). \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_ab2f5417bbabbf195ffec6e34c6adcd52}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Backward@{Backward}}
\index{Backward@{Backward}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Backward()}
{\footnotesize\ttfamily void Backward (\begin{DoxyParamCaption}\item[{const Input\+Type \&}]{input,  }\item[{const Error\+Type \&}]{gy,  }\item[{Gradient\+Type \&}]{g }\end{DoxyParamCaption})}



Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backwards trough f. 

Using the results from the feed forward pass.


\begin{DoxyParams}{Parameters}
{\em input} & The propagated input activation. \\
\hline
{\em gy} & The backpropagated error. \\
\hline
{\em g} & The calculated gradient. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a797f7edb44dd081e5e2b3cc316eef6bd}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Delta@{Delta}}
\index{Delta@{Delta}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Delta()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Output\+Data\+Type const\& Delta (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the delta. 



Definition at line 152 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_ad6601342d560219ce951d554e69e5e87}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Delta@{Delta}}
\index{Delta@{Delta}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Delta()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Delta (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the delta. 



Definition at line 154 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a09440df0a90bdcc766e56e097d91205b}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Forward@{Forward}}
\index{Forward@{Forward}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Forward()}
{\footnotesize\ttfamily void Forward (\begin{DoxyParamCaption}\item[{const Input\+Type \&}]{input,  }\item[{Output\+Type \&}]{output }\end{DoxyParamCaption})}



Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activity forward through f. 


\begin{DoxyParams}{Parameters}
{\em input} & Input data used for evaluating the specified function. \\
\hline
{\em output} & Resulting output activation. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a41f722e63794aa37f301ec3d8c2ce7aa}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Gradient@{Gradient}}
\index{Gradient@{Gradient}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Gradient()\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily void Gradient (\begin{DoxyParamCaption}\item[{const Input\+Type \&}]{input,  }\item[{const Error\+Type \&}]{error,  }\item[{Gradient\+Type \&}]{gradient }\end{DoxyParamCaption})}

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a0f1f4e6d93472d83852731a96c8c3f59}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Gradient@{Gradient}}
\index{Gradient@{Gradient}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Gradient()\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily Output\+Data\+Type const\& Gradient (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the gradient. 



Definition at line 157 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a19abce4739c3b0b658b612537e21956a}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Gradient@{Gradient}}
\index{Gradient@{Gradient}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Gradient()\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Gradient (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the gradient. 



Definition at line 159 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_adc2669016a821704c4c4aeb4651e9e87}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!In\+Size@{In\+Size}}
\index{In\+Size@{In\+Size}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{In\+Size()}
{\footnotesize\ttfamily size\+\_\+t In\+Size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the number of input units. 



Definition at line 162 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a0ee21c2a36e5abad1e7a9d5dd00849f9}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Output\+Parameter@{Output\+Parameter}}
\index{Output\+Parameter@{Output\+Parameter}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Output\+Parameter()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Output\+Data\+Type const\& Output\+Parameter (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the output parameter. 



Definition at line 147 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a21d5f745f02c709625a4ee0907f004a5}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Output\+Parameter@{Output\+Parameter}}
\index{Output\+Parameter@{Output\+Parameter}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Output\+Parameter()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Output\+Parameter (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the output parameter. 



Definition at line 149 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a366243e673681001c6080d84ea644f6a}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Out\+Size@{Out\+Size}}
\index{Out\+Size@{Out\+Size}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Out\+Size()}
{\footnotesize\ttfamily size\+\_\+t Out\+Size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the number of output units. 



Definition at line 165 of file fast\+\_\+lstm.\+hpp.



References Fast\+L\+S\+T\+M$<$ Input\+Data\+Type, Output\+Data\+Type $>$\+::serialize().

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_aa530552c7ef915c952fbacc77b965c90}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Parameters@{Parameters}}
\index{Parameters@{Parameters}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Parameters()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Output\+Data\+Type const\& Parameters (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the parameters. 



Definition at line 142 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a9c5c5900772a689d5a6b59778ec67120}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Parameters@{Parameters}}
\index{Parameters@{Parameters}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Parameters()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Parameters (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the parameters. 



Definition at line 144 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a372de693ad40b3f42839c8ec6ac845f4}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Reset@{Reset}}
\index{Reset@{Reset}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Reset()}
{\footnotesize\ttfamily void Reset (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_ab92846e8253dc597239574d87d969ffb}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Reset\+Cell@{Reset\+Cell}}
\index{Reset\+Cell@{Reset\+Cell}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Reset\+Cell()}
{\footnotesize\ttfamily void Reset\+Cell (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{size }\end{DoxyParamCaption})}

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_a45280505858e9bda815a48c96e930f8d}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Rho@{Rho}}
\index{Rho@{Rho}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Rho()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily size\+\_\+t Rho (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the maximum number of steps to backpropagate through time (B\+P\+TT). 



Definition at line 137 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_aeb617af2894a3e4bbabcd7ebc30a35af}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!Rho@{Rho}}
\index{Rho@{Rho}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{Rho()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily size\+\_\+t\& Rho (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the maximum number of steps to backpropagate through time (B\+P\+TT). 



Definition at line 139 of file fast\+\_\+lstm.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1FastLSTM_af0dd9205158ccf7bcfcd8ff81f79c927}} 
\index{mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}!serialize@{serialize}}
\index{serialize@{serialize}!mlpack\+::ann\+::\+Fast\+L\+S\+TM@{mlpack\+::ann\+::\+Fast\+L\+S\+TM}}
\subsubsection{serialize()}
{\footnotesize\ttfamily void serialize (\begin{DoxyParamCaption}\item[{Archive \&}]{ar,  }\item[{const unsigned}]{int }\end{DoxyParamCaption})}



Serialize the layer. 



Referenced by Fast\+L\+S\+T\+M$<$ Input\+Data\+Type, Output\+Data\+Type $>$\+::\+Out\+Size().



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/git/src/mlpack/methods/ann/layer/\textbf{ fast\+\_\+lstm.\+hpp}\end{DoxyCompactItemize}
