\hypertarget{gru_8cpp}{}\doxysection{layers/gru.cpp File Reference}
\label{gru_8cpp}\index{layers/gru.cpp@{layers/gru.cpp}}


This is Gated Recurrent Unit \mbox{\hyperlink{classLayer}{Layer}} Class of Neural Network.  


{\ttfamily \#include $<$cmath$>$}\newline
{\ttfamily \#include $<$gru.\+h$>$}\newline
{\ttfamily \#include $<$layer\+\_\+context.\+h$>$}\newline
{\ttfamily \#include $<$nntrainer\+\_\+error.\+h$>$}\newline
{\ttfamily \#include $<$nntrainer\+\_\+log.\+h$>$}\newline
{\ttfamily \#include $<$node\+\_\+exporter.\+h$>$}\newline
{\ttfamily \#include $<$util\+\_\+func.\+h$>$}\newline
Include dependency graph for gru.\+cpp\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{gru_8cpp__incl}
\end{center}
\end{figure}
\doxysubsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
 \mbox{\hyperlink{namespacenntrainer}{nntrainer}}
\end{DoxyCompactItemize}
\doxysubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{namespacenntrainer_a7ca95b97d62db58a42e9e7302c940761}\label{namespacenntrainer_a7ca95b97d62db58a42e9e7302c940761}} 
enum {\bfseries G\+R\+U\+Params} \{ \newline
{\bfseries weight\+\_\+ih}, 
{\bfseries weight\+\_\+hh}, 
{\bfseries bias\+\_\+h}, 
{\bfseries bias\+\_\+ih}, 
\newline
{\bfseries bias\+\_\+hh}, 
{\bfseries hidden\+\_\+state}, 
{\bfseries zrg}, 
{\bfseries h\+\_\+prev}, 
\newline
{\bfseries dropout\+\_\+mask}
 \}
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{namespacenntrainer_ae465178065a4c1f1dfb69da091bf466e}\label{namespacenntrainer_ae465178065a4c1f1dfb69da091bf466e}} 
static constexpr size\+\_\+t {\bfseries nntrainer\+::\+S\+I\+N\+G\+L\+E\+\_\+\+I\+N\+O\+U\+T\+\_\+\+I\+DX} = 0
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This is Gated Recurrent Unit \mbox{\hyperlink{classLayer}{Layer}} Class of Neural Network. 

Copyright (C) 2020 Jijoong Moon \href{mailto:jijoong.moon@samsung.com}{\texttt{ jijoong.\+moon@samsung.\+com}}

\begin{DoxyDate}{Date}
17 March 2021 
\end{DoxyDate}
\begin{DoxySeeAlso}{See also}
\href{https://github.com/nnstreamer/nntrainer}{\texttt{ https\+://github.\+com/nnstreamer/nntrainer}} 
\end{DoxySeeAlso}
\begin{DoxyAuthor}{Author}
Jijoong Moon \href{mailto:jijoong.moon@samsung.com}{\texttt{ jijoong.\+moon@samsung.\+com}} 
\end{DoxyAuthor}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000091}{Bug}}]No known bugs except for N\+YI items\end{DoxyRefDesc}


h\+\_\+prev -\/-\/-\/-\/-\/---d1-\/-\/-\/-\/---$>$\mbox{[}$\ast$\mbox{]}-\/-\/-\/-\/---d0-\/-\/---$>$\mbox{[}+\mbox{]}---d0-\/-\/$>$ h dh\+\_\+nx $\vert$ $\vert$ $\vert$ $\vert$ d0 dh $\vert$ d14 $\vert$ d2 d3 $\vert$ $\vert$ $\vert$ +-\/-\/---\mbox{[}1-\/\mbox{]}-\/-\/-\/---$>$\mbox{[}$\ast$\mbox{]} $\vert$ \mbox{[}$\ast$\mbox{]}$<$---+ d15 $\vert$d5 $\vert$ d6 $\vert$ $\vert$ $\vert$rt $\vert$ zt $\vert$gt $\vert$ $\vert$ \mbox{[}sig\mbox{]} \mbox{[}sig\mbox{]} \mbox{[}tanh\mbox{]} $\vert$ $\vert$ $\vert$d16 $\vert$ d7 $\vert$d8 $\vert$ $\vert$ \mbox{[}+\mbox{]} \mbox{[}+\mbox{]} \mbox{[}+\mbox{]} $\vert$ $\vert$ / \textbackslash{}d16 $\vert$ \textbackslash{} d7 / \textbackslash{} d8 $\vert$ $\vert$ Whhr Wxhr Whhz Wxhz Whhg Wxhg $\vert$ $\vert$ $\vert$d17 $\vert$d13 $\vert$d12 $\vert$d11 $\vert$d10 $\vert$ d9 +-\/ $\vert$--+-\/-\/-\/---$\vert$---+ $\vert$ $\vert$ $\vert$ +-\/-\/-\/-\/-\/-\/---$\vert$-\/-\/-\/-\/-\/---$\vert$-\/-\/-\/-\/-\/-\/-\/---+ $\vert$ xs-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/---+-\/-\/-\/-\/-\/---+-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/---+ 