\hypertarget{classnntrainer_1_1BasicPlanner}{}\doxysection{nntrainer\+::Basic\+Planner Class Reference}
\label{classnntrainer_1_1BasicPlanner}\index{nntrainer::BasicPlanner@{nntrainer::BasicPlanner}}


Basic Memory Planner provides the basic plan for memory layout.  




{\ttfamily \#include $<$basic\+\_\+planner.\+h$>$}



Inheritance diagram for nntrainer\+::Basic\+Planner\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=224pt]{classnntrainer_1_1BasicPlanner__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for nntrainer\+::Basic\+Planner\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=224pt]{classnntrainer_1_1BasicPlanner__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classnntrainer_1_1BasicPlanner_a357e93b7b9e7910676d44b0d5819cfb2}{$\sim$\+Basic\+Planner}} ()=default
\begin{DoxyCompactList}\small\item\em \mbox{\hyperlink{classnntrainer_1_1BasicPlanner}{Basic\+Planner}} destructor. \end{DoxyCompactList}\item 
size\+\_\+t \mbox{\hyperlink{classnntrainer_1_1BasicPlanner_a61551aa02c900b0d3127dd6e2b90f307}{plan\+Layout}} (const std\+::vector$<$ size\+\_\+t $>$ \&memory\+\_\+size, const std\+::vector$<$ std\+::pair$<$ unsigned int, unsigned int $>$$>$ \&memory\+\_\+validity, std\+::vector$<$ size\+\_\+t $>$ \&memory\+\_\+offset, std\+::vector$<$ bool $>$ \&memory\+\_\+is\+\_\+wgrad, size\+\_\+t n\+\_\+wgrad=0) const
\item 
const std\+::string \& \mbox{\hyperlink{classnntrainer_1_1BasicPlanner_a92167624746e36c43e95965ea9073730}{get\+Type}} () const
\begin{DoxyCompactList}\small\item\em Get type of the planner. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classnntrainer_1_1BasicPlanner_aac8020db485e6bb3552cb77d2543c335}\label{classnntrainer_1_1BasicPlanner_aac8020db485e6bb3552cb77d2543c335}} 
static const std\+::string {\bfseries type} = \char`\"{}basic\+\_\+planner\char`\"{}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Basic Memory Planner provides the basic plan for memory layout. 

Basic planner performs no memory optimization and provides no memory sharing 

Definition at line 29 of file basic\+\_\+planner.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1BasicPlanner_a357e93b7b9e7910676d44b0d5819cfb2}\label{classnntrainer_1_1BasicPlanner_a357e93b7b9e7910676d44b0d5819cfb2}} 
\index{nntrainer::BasicPlanner@{nntrainer::BasicPlanner}!````~BasicPlanner@{$\sim$BasicPlanner}}
\index{````~BasicPlanner@{$\sim$BasicPlanner}!nntrainer::BasicPlanner@{nntrainer::BasicPlanner}}
\doxysubsubsection{\texorpdfstring{$\sim$BasicPlanner()}{~BasicPlanner()}}
{\footnotesize\ttfamily nntrainer\+::\+Basic\+Planner\+::$\sim$\+Basic\+Planner (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [default]}}



\mbox{\hyperlink{classnntrainer_1_1BasicPlanner}{Basic\+Planner}} destructor. 



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classnntrainer_1_1BasicPlanner_a92167624746e36c43e95965ea9073730}\label{classnntrainer_1_1BasicPlanner_a92167624746e36c43e95965ea9073730}} 
\index{nntrainer::BasicPlanner@{nntrainer::BasicPlanner}!getType@{getType}}
\index{getType@{getType}!nntrainer::BasicPlanner@{nntrainer::BasicPlanner}}
\doxysubsubsection{\texorpdfstring{getType()}{getType()}}
{\footnotesize\ttfamily const std\+::string\& nntrainer\+::\+Basic\+Planner\+::get\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Get type of the planner. 

\begin{DoxyReturn}{Returns}
The type of the planner 
\end{DoxyReturn}


Implements \mbox{\hyperlink{classnntrainer_1_1MemoryPlanner_a7b35b512d91d9d3afb5f2cc8c2bdbecd}{nntrainer\+::\+Memory\+Planner}}.



Definition at line 55 of file basic\+\_\+planner.\+h.

\mbox{\Hypertarget{classnntrainer_1_1BasicPlanner_a61551aa02c900b0d3127dd6e2b90f307}\label{classnntrainer_1_1BasicPlanner_a61551aa02c900b0d3127dd6e2b90f307}} 
\index{nntrainer::BasicPlanner@{nntrainer::BasicPlanner}!planLayout@{planLayout}}
\index{planLayout@{planLayout}!nntrainer::BasicPlanner@{nntrainer::BasicPlanner}}
\doxysubsubsection{\texorpdfstring{planLayout()}{planLayout()}}
{\footnotesize\ttfamily size\+\_\+t nntrainer\+::\+Basic\+Planner\+::plan\+Layout (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ size\+\_\+t $>$ \&}]{memory\+\_\+size,  }\item[{const std\+::vector$<$ std\+::pair$<$ unsigned int, unsigned int $>$$>$ \&}]{memory\+\_\+validity,  }\item[{std\+::vector$<$ size\+\_\+t $>$ \&}]{memory\+\_\+offset,  }\item[{std\+::vector$<$ bool $>$ \&}]{memory\+\_\+is\+\_\+wgrad,  }\item[{size\+\_\+t}]{n\+\_\+wgrad = {\ttfamily 0} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}





The basic memory planner does not incorporate any memory sharing. This planner allocates independent memory for all the required memories without considering their memory validity. 

Implements \mbox{\hyperlink{classnntrainer_1_1MemoryPlanner_a9bc7139a759929d7d1323243bbdeefaa}{nntrainer\+::\+Memory\+Planner}}.



Definition at line 31 of file basic\+\_\+planner.\+cpp.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
tensor/\mbox{\hyperlink{basic__planner_8h}{basic\+\_\+planner.\+h}}\item 
tensor/\mbox{\hyperlink{basic__planner_8cpp}{basic\+\_\+planner.\+cpp}}\end{DoxyCompactItemize}
