\hypertarget{classnntrainer_1_1LossRealizer}{}\doxysection{nntrainer\+::Loss\+Realizer Class Reference}
\label{classnntrainer_1_1LossRealizer}\index{nntrainer::LossRealizer@{nntrainer::LossRealizer}}


Graph realizer class which removes loss layer from the graph.  




{\ttfamily \#include $<$loss\+\_\+realizer.\+h$>$}



Inheritance diagram for nntrainer\+::Loss\+Realizer\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=216pt]{classnntrainer_1_1LossRealizer__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for nntrainer\+::Loss\+Realizer\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=216pt]{classnntrainer_1_1LossRealizer__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classnntrainer_1_1LossRealizer_ae2a50041f511106cce1f4426390cf1a4}{Loss\+Realizer}} ()=default
\begin{DoxyCompactList}\small\item\em Construct a new Loss Realizer object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1LossRealizer_af8c26f17de884f3ae253b604aa4b5413}{$\sim$\+Loss\+Realizer}} ()=default
\begin{DoxyCompactList}\small\item\em Destroy the Graph Realizer object. \end{DoxyCompactList}\item 
Graph\+Representation \mbox{\hyperlink{classnntrainer_1_1LossRealizer_aa9fa0708ed82c3c76fd994d58326f293}{realize}} (const Graph\+Representation \&reference) override
\begin{DoxyCompactList}\small\item\em graph realizer creates a shallow copied graph based on the reference \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Graph realizer class which removes loss layer from the graph. 

\begin{DoxyNote}{Note}
This assumes the number of input / output connection of loss layer == 1 
\end{DoxyNote}


Definition at line 26 of file loss\+\_\+realizer.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1LossRealizer_ae2a50041f511106cce1f4426390cf1a4}\label{classnntrainer_1_1LossRealizer_ae2a50041f511106cce1f4426390cf1a4}} 
\index{nntrainer::LossRealizer@{nntrainer::LossRealizer}!LossRealizer@{LossRealizer}}
\index{LossRealizer@{LossRealizer}!nntrainer::LossRealizer@{nntrainer::LossRealizer}}
\doxysubsubsection{\texorpdfstring{LossRealizer()}{LossRealizer()}}
{\footnotesize\ttfamily nntrainer\+::\+Loss\+Realizer\+::\+Loss\+Realizer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}}



Construct a new Loss Realizer object. 

\mbox{\Hypertarget{classnntrainer_1_1LossRealizer_af8c26f17de884f3ae253b604aa4b5413}\label{classnntrainer_1_1LossRealizer_af8c26f17de884f3ae253b604aa4b5413}} 
\index{nntrainer::LossRealizer@{nntrainer::LossRealizer}!````~LossRealizer@{$\sim$LossRealizer}}
\index{````~LossRealizer@{$\sim$LossRealizer}!nntrainer::LossRealizer@{nntrainer::LossRealizer}}
\doxysubsubsection{\texorpdfstring{$\sim$LossRealizer()}{~LossRealizer()}}
{\footnotesize\ttfamily nntrainer\+::\+Loss\+Realizer\+::$\sim$\+Loss\+Realizer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}}



Destroy the Graph Realizer object. 



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classnntrainer_1_1LossRealizer_aa9fa0708ed82c3c76fd994d58326f293}\label{classnntrainer_1_1LossRealizer_aa9fa0708ed82c3c76fd994d58326f293}} 
\index{nntrainer::LossRealizer@{nntrainer::LossRealizer}!realize@{realize}}
\index{realize@{realize}!nntrainer::LossRealizer@{nntrainer::LossRealizer}}
\doxysubsubsection{\texorpdfstring{realize()}{realize()}}
{\footnotesize\ttfamily Graph\+Representation nntrainer\+::\+Loss\+Realizer\+::realize (\begin{DoxyParamCaption}\item[{const Graph\+Representation \&}]{reference }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}



graph realizer creates a shallow copied graph based on the reference 

\begin{DoxyNote}{Note}
loss realizer removes loss layers from Graph\+Representation 
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em reference} & Graph\+Representation to be realized \\
\hline
\end{DoxyParams}
\begin{DoxyRefDesc}{Todo}
\item[\mbox{\hyperlink{todo__todo000007}{Todo}}]support more loss layers \end{DoxyRefDesc}
\begin{DoxyNote}{Note}
Some layers need to consider not removing all semantics. For example, When Cross\+Entropy\+Sigmoid\+Loss\+Layer needs to be removed, sigmoid computation shouldn\textquotesingle{}t be removed.
\end{DoxyNote}
Assume that loss layers don\textquotesingle{}t have output connections

Implements \mbox{\hyperlink{classnntrainer_1_1GraphRealizer_a841b81262ea06e58655b512c3a0d05a9}{nntrainer\+::\+Graph\+Realizer}}.



Definition at line 29 of file loss\+\_\+realizer.\+cpp.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classnntrainer_1_1LossRealizer_aa9fa0708ed82c3c76fd994d58326f293_icgraph}
\end{center}
\end{figure}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
compiler/\mbox{\hyperlink{loss__realizer_8h}{loss\+\_\+realizer.\+h}}\item 
compiler/loss\+\_\+realizer.\+cpp\end{DoxyCompactItemize}
