\hypertarget{classnntrainer_1_1props_1_1Loss}{}\doxysection{nntrainer\+::props\+::Loss Class Reference}
\label{classnntrainer_1_1props_1_1Loss}\index{nntrainer::props::Loss@{nntrainer::props::Loss}}


\mbox{\hyperlink{classnntrainer_1_1props_1_1Loss}{Loss}} property, this defines loss specification of layer.  




Inheritance diagram for nntrainer\+::props\+::Loss\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=202pt]{classnntrainer_1_1props_1_1Loss__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for nntrainer\+::props\+::Loss\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=202pt]{classnntrainer_1_1props_1_1Loss__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
using \mbox{\hyperlink{classnntrainer_1_1props_1_1Loss_a750b07aaca575d17e5bf1bb69f2dc410}{prop\+\_\+tag}} = float\+\_\+prop\+\_\+tag
\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classnntrainer_1_1props_1_1Loss_a5cb171bd6b5c7c6220696f65a8a79e31}{Loss}} (float \mbox{\hyperlink{namespacenntrainer_a41fadbe61bee85682a61d2251b89f8ccaa7b575b9206729df489556c378b86544}{value}}=0.\+0)
\begin{DoxyCompactList}\small\item\em Construct a new loss object with a default value 0.\+0. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{classnntrainer_1_1props_1_1Loss_a3a237ef6bed6514871292beecee9cd54}{is\+Valid}} (const float \&v) const override
\begin{DoxyCompactList}\small\item\em Loss\+Spec validator. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static constexpr const char $\ast$ \mbox{\hyperlink{classnntrainer_1_1props_1_1Loss_ae3b8ef096cca8b924f3a133fe27b1978}{key}} = \char`\"{}loss\char`\"{}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\mbox{\hyperlink{classnntrainer_1_1props_1_1Loss}{Loss}} property, this defines loss specification of layer. 



Definition at line 69 of file layer\+\_\+node.\+cpp.



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

property type 

Definition at line 78 of file layer\+\_\+node.\+cpp.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1props_1_1Loss_a5cb171bd6b5c7c6220696f65a8a79e31}\label{classnntrainer_1_1props_1_1Loss_a5cb171bd6b5c7c6220696f65a8a79e31}} 
\index{nntrainer::props::Loss@{nntrainer::props::Loss}!Loss@{Loss}}
\index{Loss@{Loss}!nntrainer::props::Loss@{nntrainer::props::Loss}}
\doxysubsubsection{\texorpdfstring{Loss()}{Loss()}}
{\footnotesize\ttfamily nntrainer\+::props\+::\+Loss\+::\+Loss (\begin{DoxyParamCaption}\item[{float}]{value = {\ttfamily 0.0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Construct a new loss object with a default value 0.\+0. 



Definition at line 76 of file layer\+\_\+node.\+cpp.



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



Loss\+Spec validator. 

\begin{DoxyRefDesc}{Todo}
\item[\mbox{\hyperlink{todo__todo000077}{Todo}}]detect when loss becomes Nan is useful. But it will need dedicated throw \end{DoxyRefDesc}

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

\begin{DoxyRetVals}{Return values}
{\em true} & if is valid number \\
\hline
{\em false} & if it is nan \\
\hline
\end{DoxyRetVals}


Definition at line 88 of file layer\+\_\+node.\+cpp.



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

unique key to access 

Definition at line 77 of file layer\+\_\+node.\+cpp.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
layers/\mbox{\hyperlink{layer__node_8cpp}{layer\+\_\+node.\+cpp}}\end{DoxyCompactItemize}
