\hypertarget{interpreter_8h}{}\doxysection{compiler/interpreter.h File Reference}
\label{interpreter_8h}\index{compiler/interpreter.h@{compiler/interpreter.h}}


N\+N\+Trainer interpreter that reads and generates a graph\+Representation from a file.  


{\ttfamily \#include $<$memory$>$}\newline
{\ttfamily \#include $<$string$>$}\newline
{\ttfamily \#include $<$vector$>$}\newline
{\ttfamily \#include $<$compiler\+\_\+fwd.\+h$>$}\newline
Include dependency graph for interpreter.\+h\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=261pt]{interpreter_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{interpreter_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{classnntrainer_1_1GraphInterpreter}{nntrainer\+::\+Graph\+Interpreter}}
\begin{DoxyCompactList}\small\item\em Pure virtual class for the Graph Interpreter. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
 \mbox{\hyperlink{namespacenntrainer}{nntrainer}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
N\+N\+Trainer interpreter that reads and generates a graph\+Representation from a file. 

Copyright (C) 2021 Jihoon Lee \href{mailto:jhoon.it.lee@samsung.com}{\texttt{ jhoon.\+it.\+lee@samsung.\+com}}

\begin{DoxyDate}{Date}
01 April 2021 
\end{DoxyDate}
\begin{DoxySeeAlso}{See also}
\href{https://github.com/nnstreamer/nntrainer}{\texttt{ https\+://github.\+com/nnstreamer/nntrainer}} 
\end{DoxySeeAlso}
\begin{DoxyAuthor}{Author}
Jihoon Lee \href{mailto:jhoon.it.lee@samsung.com}{\texttt{ jhoon.\+it.\+lee@samsung.\+com}} 
\end{DoxyAuthor}
\begin{DoxyRefDesc}{Bug}
\item[\mbox{\hyperlink{bug__bug000019}{Bug}}]No known bugs except for N\+YI items \end{DoxyRefDesc}
\begin{DoxyNote}{Note}
The boundary of graph interpreter is restricted to graph only.
\end{DoxyNote}
Graph is convertible either from a file, representation by a appropriate interpreter For example, if istream would be from a a.\+tflite file,

Graph\+Representation g; Graph\+Interpreter $\ast$ interpreter = new Tflite\+Interpreter;

std\+::ifstream f = std\+::open(\char`\"{}a.\+tflite\char`\"{}); g = interpreter-\/$>$serialize(f); \begin{DoxyVerb}    +--------+
    |iostream|
    +--+--+--+
       ^  |
\end{DoxyVerb}
 serialize()$\vert$ $\vert$ $\vert$ $\vert$ (Interpreter) $\vert$ $\vert$ $\vert$ $\vert$ deserialize() $\vert$ v +-\/-\/-\/-\/---+--+-\/-\/-\/-\/-\/---+ $\vert$\+Graph\+Representation$\vert$ +-\/-\/-\/-\/---+-\/-\/-\/-\/-\/-\/-\/-\/---+ 