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


N\+N\+Trainer compiler that reads to generate optimized graph.  


{\ttfamily \#include $<$memory$>$}\newline
{\ttfamily \#include $<$compiler\+\_\+fwd.\+h$>$}\newline
{\ttfamily \#include $<$network\+\_\+graph.\+h$>$}\newline
Include dependency graph for compiler.\+h\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=343pt]{compiler_8h__incl}
\end{center}
\end{figure}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{classnntrainer_1_1GraphCompiler}{nntrainer\+::\+Graph\+Compiler}}
\begin{DoxyCompactList}\small\item\em Pure virtual class for the Graph Compiler. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
 \mbox{\hyperlink{namespacenntrainer}{nntrainer}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
N\+N\+Trainer compiler that reads to generate optimized graph. 

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__bug000007}{Bug}}]No known bugs except for N\+YI items \end{DoxyRefDesc}


Graph is convertible either to iostream, representation, executable by appropriate compiler and interpreter For example, if istream would be from a a.\+tflite file,

Graph\+Representation g; Graph\+Compiler $\ast$ compiler = new N\+N\+Trainer\+C\+P\+U\+Compiler;

Executable\+Graph eg = compiler-\/$>$compile(g);

+-\/-\/-\/-\/---+--+-\/-\/-\/-\/-\/---+ $\vert$\+Graph\+Representation$\vert$ +-\/-\/-\/-\/---+-\/-\/-\/-\/-\/-\/-\/-\/---+ $\vert$ $^\wedge$ compile() $\vert$ $\vert$ $\vert$ $\vert$ (Compiler) $\vert$ $\vert$ $\vert$ $\vert$ decompile() v $\vert$ +-\/-\/-\/-\/-\/---+-\/-\/-\/---+ $\vert$\+Executable\+Graph$\vert$ +-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/---+ 