\hypertarget{classnntrainer_1_1props_1_1Momentum}{}\doxysection{nntrainer\+::props\+::Momentum Class Reference}
\label{classnntrainer_1_1props_1_1Momentum}\index{nntrainer::props::Momentum@{nntrainer::props::Momentum}}


\mbox{\hyperlink{classnntrainer_1_1props_1_1Momentum}{Momentum}} property, moving average in batch normalization layer.  




{\ttfamily \#include $<$common\+\_\+properties.\+h$>$}



Inheritance diagram for nntrainer\+::props\+::Momentum\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=236pt]{classnntrainer_1_1props_1_1Momentum__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for nntrainer\+::props\+::Momentum\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=236pt]{classnntrainer_1_1props_1_1Momentum__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
using \mbox{\hyperlink{classnntrainer_1_1props_1_1Momentum_aca45857f48b145a06e7786bdf0055f51}{prop\+\_\+tag}} = float\+\_\+prop\+\_\+tag
\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classnntrainer_1_1props_1_1Momentum_a658edc8a8d2ff780d61f4827c4587ba0}{Momentum}} (float \mbox{\hyperlink{namespacenntrainer_a41fadbe61bee85682a61d2251b89f8ccaa7b575b9206729df489556c378b86544}{value}}=0.\+99)
\begin{DoxyCompactList}\small\item\em Construct a new \mbox{\hyperlink{classnntrainer_1_1props_1_1Momentum}{Momentum}} object with a default value 0.\+99. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classnntrainer_1_1props_1_1Momentum_ab5591dfacfa9bee537abdbd997055cc7}{is\+Valid}} (const float \&\mbox{\hyperlink{namespacenntrainer_a41fadbe61bee85682a61d2251b89f8ccaa7b575b9206729df489556c378b86544}{value}}) const override
\begin{DoxyCompactList}\small\item\em \mbox{\hyperlink{classnntrainer_1_1props_1_1Momentum}{Momentum}} validator. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static constexpr const char $\ast$ \mbox{\hyperlink{classnntrainer_1_1props_1_1Momentum_aed29468fed0293f24a62bdb0df3fef94}{key}} = \char`\"{}momentum\char`\"{}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\mbox{\hyperlink{classnntrainer_1_1props_1_1Momentum}{Momentum}} property, moving average in batch normalization layer. 



Definition at line 231 of file common\+\_\+properties.\+h.



\doxysubsection{Member Typedef Documentation}
\mbox{\Hypertarget{classnntrainer_1_1props_1_1Momentum_aca45857f48b145a06e7786bdf0055f51}\label{classnntrainer_1_1props_1_1Momentum_aca45857f48b145a06e7786bdf0055f51}} 
\index{nntrainer::props::Momentum@{nntrainer::props::Momentum}!prop\_tag@{prop\_tag}}
\index{prop\_tag@{prop\_tag}!nntrainer::props::Momentum@{nntrainer::props::Momentum}}
\doxysubsubsection{\texorpdfstring{prop\_tag}{prop\_tag}}
{\footnotesize\ttfamily using \mbox{\hyperlink{classnntrainer_1_1props_1_1Momentum_aca45857f48b145a06e7786bdf0055f51}{nntrainer\+::props\+::\+Momentum\+::prop\+\_\+tag}} =  float\+\_\+prop\+\_\+tag}

property type 

Definition at line 240 of file common\+\_\+properties.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1props_1_1Momentum_a658edc8a8d2ff780d61f4827c4587ba0}\label{classnntrainer_1_1props_1_1Momentum_a658edc8a8d2ff780d61f4827c4587ba0}} 
\index{nntrainer::props::Momentum@{nntrainer::props::Momentum}!Momentum@{Momentum}}
\index{Momentum@{Momentum}!nntrainer::props::Momentum@{nntrainer::props::Momentum}}
\doxysubsubsection{\texorpdfstring{Momentum()}{Momentum()}}
{\footnotesize\ttfamily nntrainer\+::props\+::\+Momentum\+::\+Momentum (\begin{DoxyParamCaption}\item[{float}]{value = {\ttfamily 0.99} }\end{DoxyParamCaption})}



Construct a new \mbox{\hyperlink{classnntrainer_1_1props_1_1Momentum}{Momentum}} object with a default value 0.\+99. 



Definition at line 93 of file common\+\_\+properties.\+cpp.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classnntrainer_1_1props_1_1Momentum_ab5591dfacfa9bee537abdbd997055cc7}\label{classnntrainer_1_1props_1_1Momentum_ab5591dfacfa9bee537abdbd997055cc7}} 
\index{nntrainer::props::Momentum@{nntrainer::props::Momentum}!isValid@{isValid}}
\index{isValid@{isValid}!nntrainer::props::Momentum@{nntrainer::props::Momentum}}
\doxysubsubsection{\texorpdfstring{isValid()}{isValid()}}
{\footnotesize\ttfamily bool nntrainer\+::props\+::\+Momentum\+::is\+Valid (\begin{DoxyParamCaption}\item[{const float \&}]{value }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [override]}}



\mbox{\hyperlink{classnntrainer_1_1props_1_1Momentum}{Momentum}} validator. 


\begin{DoxyParams}{Parameters}
{\em value} & float to validate \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{Return values}
{\em true} & if it is greater than 0.\+0 and smaller than 1.\+0 \\
\hline
{\em false} & if it is samller or equal than 0.\+0 or greater or equal than 1.\+0 \\
\hline
\end{DoxyRetVals}


Definition at line 95 of file common\+\_\+properties.\+cpp.



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{classnntrainer_1_1props_1_1Momentum_aed29468fed0293f24a62bdb0df3fef94}\label{classnntrainer_1_1props_1_1Momentum_aed29468fed0293f24a62bdb0df3fef94}} 
\index{nntrainer::props::Momentum@{nntrainer::props::Momentum}!key@{key}}
\index{key@{key}!nntrainer::props::Momentum@{nntrainer::props::Momentum}}
\doxysubsubsection{\texorpdfstring{key}{key}}
{\footnotesize\ttfamily constexpr const char$\ast$ nntrainer\+::props\+::\+Momentum\+::key = \char`\"{}momentum\char`\"{}\hspace{0.3cm}{\ttfamily [static]}, {\ttfamily [constexpr]}}

unique key to access 

Definition at line 239 of file common\+\_\+properties.\+h.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
layers/\mbox{\hyperlink{common__properties_8h}{common\+\_\+properties.\+h}}\item 
layers/\mbox{\hyperlink{common__properties_8cpp}{common\+\_\+properties.\+cpp}}\end{DoxyCompactItemize}
