\hypertarget{classnntrainer_1_1PreviousInputRealizer}{}\doxysection{nntrainer\+::Previous\+Input\+Realizer Class Reference}
\label{classnntrainer_1_1PreviousInputRealizer}\index{nntrainer::PreviousInputRealizer@{nntrainer::PreviousInputRealizer}}


Add default inputs if input connection is empty. if a node is identified as input with {\itshape identified\+\_\+input} by user or a node has input\+\_\+shape property, adding input behavior is skipped.  




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



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


Collaboration diagram for nntrainer\+::Previous\+Input\+Realizer\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=216pt]{classnntrainer_1_1PreviousInputRealizer__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classnntrainer_1_1PreviousInputRealizer_a3a72d66679c6cdab924d2cfd965b731c}{Previous\+Input\+Realizer}} (const std\+::vector$<$ \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} $>$ \&identified\+\_\+inputs)
\begin{DoxyCompactList}\small\item\em Construct a new Previous Input Realizer object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1PreviousInputRealizer_a347780eb05d614fc1ae299cf842faa21}{$\sim$\+Previous\+Input\+Realizer}} ()
\begin{DoxyCompactList}\small\item\em Destroy the Graph Realizer object. \end{DoxyCompactList}\item 
Graph\+Representation \mbox{\hyperlink{classnntrainer_1_1PreviousInputRealizer_ae3a13b973aa3b9fa7fdff781a6a47c4e}{realize}} (const Graph\+Representation \&reference) override
\begin{DoxyCompactList}\small\item\em graph realizer creates a new graph based on the reference \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Add default inputs if input connection is empty. if a node is identified as input with {\itshape identified\+\_\+input} by user or a node has input\+\_\+shape property, adding input behavior is skipped. 



Definition at line 29 of file previous\+\_\+input\+\_\+realizer.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1PreviousInputRealizer_a3a72d66679c6cdab924d2cfd965b731c}\label{classnntrainer_1_1PreviousInputRealizer_a3a72d66679c6cdab924d2cfd965b731c}} 
\index{nntrainer::PreviousInputRealizer@{nntrainer::PreviousInputRealizer}!PreviousInputRealizer@{PreviousInputRealizer}}
\index{PreviousInputRealizer@{PreviousInputRealizer}!nntrainer::PreviousInputRealizer@{nntrainer::PreviousInputRealizer}}
\doxysubsubsection{\texorpdfstring{PreviousInputRealizer()}{PreviousInputRealizer()}}
{\footnotesize\ttfamily nntrainer\+::\+Previous\+Input\+Realizer\+::\+Previous\+Input\+Realizer (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ \mbox{\hyperlink{classnntrainer_1_1Connection}{Connection}} $>$ \&}]{identified\+\_\+inputs }\end{DoxyParamCaption})}



Construct a new Previous Input Realizer object. 


\begin{DoxyParams}{Parameters}
{\em identified\+\_\+inputs} & node that is identified as an input, this must not connect to other nodes automatically \\
\hline
\end{DoxyParams}


Definition at line 25 of file previous\+\_\+input\+\_\+realizer.\+cpp.

\mbox{\Hypertarget{classnntrainer_1_1PreviousInputRealizer_a347780eb05d614fc1ae299cf842faa21}\label{classnntrainer_1_1PreviousInputRealizer_a347780eb05d614fc1ae299cf842faa21}} 
\index{nntrainer::PreviousInputRealizer@{nntrainer::PreviousInputRealizer}!````~PreviousInputRealizer@{$\sim$PreviousInputRealizer}}
\index{````~PreviousInputRealizer@{$\sim$PreviousInputRealizer}!nntrainer::PreviousInputRealizer@{nntrainer::PreviousInputRealizer}}
\doxysubsubsection{\texorpdfstring{$\sim$PreviousInputRealizer()}{~PreviousInputRealizer()}}
{\footnotesize\ttfamily nntrainer\+::\+Previous\+Input\+Realizer\+::$\sim$\+Previous\+Input\+Realizer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Destroy the Graph Realizer object. 



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



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



graph realizer creates a new graph based on the reference 

for node has input connection, below function determines if the node should be input node or add input\+\_\+layers from previous layer

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



Definition at line 32 of file previous\+\_\+input\+\_\+realizer.\+cpp.



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