\hypertarget{classnntrainer_1_1GraphCompiler}{}\doxysection{nntrainer\+::Graph\+Compiler Class Reference}
\label{classnntrainer_1_1GraphCompiler}\index{nntrainer::GraphCompiler@{nntrainer::GraphCompiler}}


Pure virtual class for the Graph Compiler.  




{\ttfamily \#include $<$compiler.\+h$>$}

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual std\+::shared\+\_\+ptr$<$ Executable\+Graph $>$ \mbox{\hyperlink{classnntrainer_1_1GraphCompiler_ada1e44b77fc700d1d13ef2a1b4cdfc7a}{compile}} (std\+::shared\+\_\+ptr$<$ const Graph\+Representation $>$ representation)=0
\begin{DoxyCompactList}\small\item\em serialize graph to a file stream \end{DoxyCompactList}\item 
virtual std\+::shared\+\_\+ptr$<$ Graph\+Representation $>$ \mbox{\hyperlink{classnntrainer_1_1GraphCompiler_ae05269bba8c0c14eb742e379850bf855}{decompile}} (std\+::shared\+\_\+ptr$<$ Executable\+Graph $>$ executable)=0
\begin{DoxyCompactList}\small\item\em deserialize graph from a file stream \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Pure virtual class for the Graph Compiler. 



Definition at line 51 of file compiler.\+h.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classnntrainer_1_1GraphCompiler_ada1e44b77fc700d1d13ef2a1b4cdfc7a}\label{classnntrainer_1_1GraphCompiler_ada1e44b77fc700d1d13ef2a1b4cdfc7a}} 
\index{nntrainer::GraphCompiler@{nntrainer::GraphCompiler}!compile@{compile}}
\index{compile@{compile}!nntrainer::GraphCompiler@{nntrainer::GraphCompiler}}
\doxysubsubsection{\texorpdfstring{compile()}{compile()}}
{\footnotesize\ttfamily virtual std\+::shared\+\_\+ptr$<$Executable\+Graph$>$ nntrainer\+::\+Graph\+Compiler\+::compile (\begin{DoxyParamCaption}\item[{std\+::shared\+\_\+ptr$<$ const Graph\+Representation $>$}]{representation }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



serialize graph to a file stream 

\begin{DoxyRefDesc}{Todo}
\item[\mbox{\hyperlink{todo__todo000001}{Todo}}]consider adding delegates argument here when implementing it for real.\end{DoxyRefDesc}



\begin{DoxyParams}{Parameters}
{\em representation} & graph representation \\
\hline
{\em file} & ifstream to serialize graph \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{classnntrainer_1_1GraphCompiler_ae05269bba8c0c14eb742e379850bf855}\label{classnntrainer_1_1GraphCompiler_ae05269bba8c0c14eb742e379850bf855}} 
\index{nntrainer::GraphCompiler@{nntrainer::GraphCompiler}!decompile@{decompile}}
\index{decompile@{decompile}!nntrainer::GraphCompiler@{nntrainer::GraphCompiler}}
\doxysubsubsection{\texorpdfstring{decompile()}{decompile()}}
{\footnotesize\ttfamily virtual std\+::shared\+\_\+ptr$<$Graph\+Representation$>$ nntrainer\+::\+Graph\+Compiler\+::decompile (\begin{DoxyParamCaption}\item[{std\+::shared\+\_\+ptr$<$ Executable\+Graph $>$}]{executable }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



deserialize graph from a file stream 


\begin{DoxyParams}{Parameters}
{\em executable} & executable graph \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Graph\+Representation graph representation 
\end{DoxyReturn}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
compiler/\mbox{\hyperlink{compiler_8h}{compiler.\+h}}\end{DoxyCompactItemize}
