\hypertarget{classnntrainer_1_1IniGraphInterpreter}{}\doxysection{nntrainer\+::Ini\+Graph\+Interpreter Class Reference}
\label{classnntrainer_1_1IniGraphInterpreter}\index{nntrainer::IniGraphInterpreter@{nntrainer::IniGraphInterpreter}}


ini graph interpreter class  




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



Inheritance diagram for nntrainer\+::Ini\+Graph\+Interpreter\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=240pt]{classnntrainer_1_1IniGraphInterpreter__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for nntrainer\+::Ini\+Graph\+Interpreter\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=240pt]{classnntrainer_1_1IniGraphInterpreter__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classnntrainer_1_1IniGraphInterpreter_a3b32b0d37299317cae8715c3808c3342}{Ini\+Graph\+Interpreter}} (const \mbox{\hyperlink{classnntrainer_1_1AppContext}{App\+Context}} \&app\+\_\+context\+\_\+=\mbox{\hyperlink{classnntrainer_1_1AppContext_a692d7f2657598782884be3b78957ccd3}{App\+Context\+::\+Global}}(), std\+::function$<$ const std\+::string(const std\+::string \&)$>$ path\+Resolver\+\_\+=\mbox{[}$\,$\mbox{]}(const std\+::string \&path) \{ return path;\})
\begin{DoxyCompactList}\small\item\em Construct a new Ini Graph Interpreter object. \end{DoxyCompactList}\item 
virtual \mbox{\hyperlink{classnntrainer_1_1IniGraphInterpreter_a9d72c92fe6e86917de374510c9c6eac9}{$\sim$\+Ini\+Graph\+Interpreter}} ()
\begin{DoxyCompactList}\small\item\em Destroy the Ini Graph Interpreter object. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classnntrainer_1_1IniGraphInterpreter_a168804ee2155d804f69702c07799609e}{serialize}} (const Graph\+Representation \&representation, const std\+::string \&out) override
\item 
Graph\+Representation \mbox{\hyperlink{classnntrainer_1_1IniGraphInterpreter_ab5089d3b2bb64a694b112ce629d04b48}{deserialize}} (const std\+::string \&in) override
\begin{DoxyCompactList}\small\item\em deserialize graph from a stream \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
ini graph interpreter class 



Definition at line 30 of file ini\+\_\+interpreter.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1IniGraphInterpreter_a3b32b0d37299317cae8715c3808c3342}\label{classnntrainer_1_1IniGraphInterpreter_a3b32b0d37299317cae8715c3808c3342}} 
\index{nntrainer::IniGraphInterpreter@{nntrainer::IniGraphInterpreter}!IniGraphInterpreter@{IniGraphInterpreter}}
\index{IniGraphInterpreter@{IniGraphInterpreter}!nntrainer::IniGraphInterpreter@{nntrainer::IniGraphInterpreter}}
\doxysubsubsection{\texorpdfstring{IniGraphInterpreter()}{IniGraphInterpreter()}}
{\footnotesize\ttfamily nntrainer\+::\+Ini\+Graph\+Interpreter\+::\+Ini\+Graph\+Interpreter (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{classnntrainer_1_1AppContext}{App\+Context}} \&}]{app\+\_\+context\+\_\+ = {\ttfamily \mbox{\hyperlink{classnntrainer_1_1AppContext_a692d7f2657598782884be3b78957ccd3}{App\+Context\+::\+Global}}()},  }\item[{std\+::function$<$ const std\+::string(const std\+::string \&)$>$}]{path\+Resolver\+\_\+ = {\ttfamily \mbox{[}\mbox{]}(const~std\+:\+:string~\&path)~\{~return~path;~\}} }\end{DoxyParamCaption})}



Construct a new Ini Graph Interpreter object. 


\begin{DoxyParams}{Parameters}
{\em path\+Resolver\+\_\+} & path resolver function to be used \\
\hline
\end{DoxyParams}


Definition at line 49 of file ini\+\_\+interpreter.\+cpp.

\mbox{\Hypertarget{classnntrainer_1_1IniGraphInterpreter_a9d72c92fe6e86917de374510c9c6eac9}\label{classnntrainer_1_1IniGraphInterpreter_a9d72c92fe6e86917de374510c9c6eac9}} 
\index{nntrainer::IniGraphInterpreter@{nntrainer::IniGraphInterpreter}!````~IniGraphInterpreter@{$\sim$IniGraphInterpreter}}
\index{````~IniGraphInterpreter@{$\sim$IniGraphInterpreter}!nntrainer::IniGraphInterpreter@{nntrainer::IniGraphInterpreter}}
\doxysubsubsection{\texorpdfstring{$\sim$IniGraphInterpreter()}{~IniGraphInterpreter()}}
{\footnotesize\ttfamily nntrainer\+::\+Ini\+Graph\+Interpreter\+::$\sim$\+Ini\+Graph\+Interpreter (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Destroy the Ini Graph Interpreter object. 



Definition at line 55 of file ini\+\_\+interpreter.\+cpp.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classnntrainer_1_1IniGraphInterpreter_ab5089d3b2bb64a694b112ce629d04b48}\label{classnntrainer_1_1IniGraphInterpreter_ab5089d3b2bb64a694b112ce629d04b48}} 
\index{nntrainer::IniGraphInterpreter@{nntrainer::IniGraphInterpreter}!deserialize@{deserialize}}
\index{deserialize@{deserialize}!nntrainer::IniGraphInterpreter@{nntrainer::IniGraphInterpreter}}
\doxysubsubsection{\texorpdfstring{deserialize()}{deserialize()}}
{\footnotesize\ttfamily Graph\+Representation nntrainer\+::\+Ini\+Graph\+Interpreter\+::deserialize (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{in }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [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}
Get number of sections in the file

dedicated sections so skip

Parse all the layers defined as sections in order

If this section is a backbone, load backbone section from this \begin{DoxyNote}{Note}
The order of backbones in the ini file defines the order on the backbones in the model graph
\end{DoxyNote}
\begin{DoxyRefDesc}{Todo}
\item[\mbox{\hyperlink{todo__todo000003}{Todo}}]\+: this will be changed to a general way to add a graph \end{DoxyRefDesc}


\begin{DoxyRefDesc}{Todo}
\item[\mbox{\hyperlink{todo__todo000004}{Todo}}]if graph Model Type is of recurrent\+\_\+wrapper, parse model and realize before return \end{DoxyRefDesc}


clean up and rethrow

Implements \mbox{\hyperlink{classnntrainer_1_1GraphInterpreter_ac2a13529652a7b35f74fbf2f6977db08}{nntrainer\+::\+Graph\+Interpreter}}.



Definition at line 285 of file ini\+\_\+interpreter.\+cpp.

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







Implements \mbox{\hyperlink{classnntrainer_1_1GraphInterpreter_a04881010be46c66cbe9f87114ecb60fb}{nntrainer\+::\+Graph\+Interpreter}}.



Definition at line 267 of file ini\+\_\+interpreter.\+cpp.

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


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