\hypertarget{classnntrainer_1_1GraphInterpreter}{}\doxysection{nntrainer\+::Graph\+Interpreter Class Reference}
\label{classnntrainer_1_1GraphInterpreter}\index{nntrainer::GraphInterpreter@{nntrainer::GraphInterpreter}}


Pure virtual class for the Graph Interpreter.  




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



Inheritance diagram for nntrainer\+::Graph\+Interpreter\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classnntrainer_1_1GraphInterpreter__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \mbox{\hyperlink{classnntrainer_1_1GraphInterpreter_a04881010be46c66cbe9f87114ecb60fb}{serialize}} (const Graph\+Representation \&representation, const std\+::string \&out)=0
\begin{DoxyCompactList}\small\item\em serialize graph to a stream \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{classnntrainer_1_1GraphInterpreter_a4e7ec5d955f3924e1215f0ad5ad668f5}{serialize\+\_\+v1}} (const Network\+Graph \&representation, const std\+::string \&out)
\begin{DoxyCompactList}\small\item\em serialize graph to a stream \end{DoxyCompactList}\item 
virtual std\+::shared\+\_\+ptr$<$ Network\+Graph $>$ \mbox{\hyperlink{classnntrainer_1_1GraphInterpreter_a7405021d7986c51ff91338d3ed8513d8}{deserialize\+\_\+v1}} (const std\+::string \&in)
\begin{DoxyCompactList}\small\item\em graph representation \end{DoxyCompactList}\item 
virtual Graph\+Representation \mbox{\hyperlink{classnntrainer_1_1GraphInterpreter_ac2a13529652a7b35f74fbf2f6977db08}{deserialize}} (const std\+::string \&in)=0
\begin{DoxyCompactList}\small\item\em deserialize graph from a stream \end{DoxyCompactList}\end{DoxyCompactItemize}


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



Definition at line 54 of file interpreter.\+h.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classnntrainer_1_1GraphInterpreter_ac2a13529652a7b35f74fbf2f6977db08}\label{classnntrainer_1_1GraphInterpreter_ac2a13529652a7b35f74fbf2f6977db08}} 
\index{nntrainer::GraphInterpreter@{nntrainer::GraphInterpreter}!deserialize@{deserialize}}
\index{deserialize@{deserialize}!nntrainer::GraphInterpreter@{nntrainer::GraphInterpreter}}
\doxysubsubsection{\texorpdfstring{deserialize()}{deserialize()}}
{\footnotesize\ttfamily virtual Graph\+Representation nntrainer\+::\+Graph\+Interpreter\+::deserialize (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{in }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



deserialize graph from a stream 


\begin{DoxyParams}{Parameters}
{\em in} & input file name \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Graph\+Representation graph representation 
\end{DoxyReturn}


Implemented in \mbox{\hyperlink{classnntrainer_1_1IniGraphInterpreter_ab5089d3b2bb64a694b112ce629d04b48}{nntrainer\+::\+Ini\+Graph\+Interpreter}}, \mbox{\hyperlink{classnntrainer_1_1FlatBufferInterpreter_abfb696c24f2f14e8977d9f5e3119760f}{nntrainer\+::\+Flat\+Buffer\+Interpreter}}, and \mbox{\hyperlink{classnntrainer_1_1TfliteInterpreter_a42c1416aefec7236458f73188ec7907e}{nntrainer\+::\+Tflite\+Interpreter}}.

\mbox{\Hypertarget{classnntrainer_1_1GraphInterpreter_a7405021d7986c51ff91338d3ed8513d8}\label{classnntrainer_1_1GraphInterpreter_a7405021d7986c51ff91338d3ed8513d8}} 
\index{nntrainer::GraphInterpreter@{nntrainer::GraphInterpreter}!deserialize\_v1@{deserialize\_v1}}
\index{deserialize\_v1@{deserialize\_v1}!nntrainer::GraphInterpreter@{nntrainer::GraphInterpreter}}
\doxysubsubsection{\texorpdfstring{deserialize\_v1()}{deserialize\_v1()}}
{\footnotesize\ttfamily virtual std\+::shared\+\_\+ptr$<$Network\+Graph$>$ nntrainer\+::\+Graph\+Interpreter\+::deserialize\+\_\+v1 (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{in }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



graph representation 


\begin{DoxyParams}{Parameters}
{\em in} & input file name \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
std\+::shared\+\_\+ptr$<$\+Network\+Graph$>$ 
\end{DoxyReturn}


Definition at line 81 of file interpreter.\+h.

\mbox{\Hypertarget{classnntrainer_1_1GraphInterpreter_a04881010be46c66cbe9f87114ecb60fb}\label{classnntrainer_1_1GraphInterpreter_a04881010be46c66cbe9f87114ecb60fb}} 
\index{nntrainer::GraphInterpreter@{nntrainer::GraphInterpreter}!serialize@{serialize}}
\index{serialize@{serialize}!nntrainer::GraphInterpreter@{nntrainer::GraphInterpreter}}
\doxysubsubsection{\texorpdfstring{serialize()}{serialize()}}
{\footnotesize\ttfamily virtual void nntrainer\+::\+Graph\+Interpreter\+::serialize (\begin{DoxyParamCaption}\item[{const Graph\+Representation \&}]{representation,  }\item[{const std\+::string \&}]{out }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}



serialize graph to a stream 


\begin{DoxyParams}{Parameters}
{\em representation} & graph representation \\
\hline
{\em out} & output file name \\
\hline
\end{DoxyParams}


Implemented in \mbox{\hyperlink{classnntrainer_1_1IniGraphInterpreter_a168804ee2155d804f69702c07799609e}{nntrainer\+::\+Ini\+Graph\+Interpreter}}, \mbox{\hyperlink{classnntrainer_1_1FlatBufferInterpreter_a14bc8a279e0623be98ce363af87ecff4}{nntrainer\+::\+Flat\+Buffer\+Interpreter}}, and \mbox{\hyperlink{classnntrainer_1_1TfliteInterpreter_ad6af4f59bfe69011f02785082f9a31f8}{nntrainer\+::\+Tflite\+Interpreter}}.

\mbox{\Hypertarget{classnntrainer_1_1GraphInterpreter_a4e7ec5d955f3924e1215f0ad5ad668f5}\label{classnntrainer_1_1GraphInterpreter_a4e7ec5d955f3924e1215f0ad5ad668f5}} 
\index{nntrainer::GraphInterpreter@{nntrainer::GraphInterpreter}!serialize\_v1@{serialize\_v1}}
\index{serialize\_v1@{serialize\_v1}!nntrainer::GraphInterpreter@{nntrainer::GraphInterpreter}}
\doxysubsubsection{\texorpdfstring{serialize\_v1()}{serialize\_v1()}}
{\footnotesize\ttfamily virtual void nntrainer\+::\+Graph\+Interpreter\+::serialize\+\_\+v1 (\begin{DoxyParamCaption}\item[{const Network\+Graph \&}]{representation,  }\item[{const std\+::string \&}]{out }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



serialize graph to a stream 


\begin{DoxyParams}{Parameters}
{\em representation} & graph representation \\
\hline
{\em out} & output file name \\
\hline
\end{DoxyParams}


Definition at line 72 of file interpreter.\+h.



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