\hypertarget{classnntrainer_1_1Backend}{}\doxysection{nntrainer\+::Backend Class Reference}
\label{classnntrainer_1_1Backend}\index{nntrainer::Backend@{nntrainer::Backend}}


\mbox{\hyperlink{classnntrainer_1_1Backend}{Backend}} to be used for the operations to use.  




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

\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812f}{Backend\+Type}} \{ \mbox{\hyperlink{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812fa9ab8a6b109087353742b6fb9b009a05f}{Backend\+Type\+::armcl}}, 
\mbox{\hyperlink{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812fa8307c9ea2a958ad9969c49060328c067}{Backend\+Type\+::blas}}, 
\mbox{\hyperlink{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812fa593616de15330c0fb2d55e55410bf994}{Backend\+Type\+::base}}
 \}
\begin{DoxyCompactList}\small\item\em \mbox{\hyperlink{classnntrainer_1_1Backend}{Backend}} type enumeration. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classnntrainer_1_1Backend_a062dcdd2888bab4663d5f40e6ca72d6d}{Backend}} (\mbox{\hyperlink{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812f}{Backend\+Type}} backend=\mbox{\hyperlink{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812fa593616de15330c0fb2d55e55410bf994}{Backend\+Type\+::base}}, int num\+\_\+t=1)
\begin{DoxyCompactList}\small\item\em Construct a new \mbox{\hyperlink{classnntrainer_1_1Backend}{Backend}} object. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classnntrainer_1_1Backend_a00d1aefcd1831bcaf475b8dc7105260f}{set\+Num\+Threads}} (unsigned int num\+\_\+threads)
\begin{DoxyCompactList}\small\item\em Set the number of threads for the backend if supported. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\mbox{\hyperlink{classnntrainer_1_1Backend}{Backend}} to be used for the operations to use. 

\begin{DoxyNote}{Note}
If some operation is not supported on set backend, that operation implemented with default backend will be used. 
\end{DoxyNote}


Definition at line 28 of file delegate.\+h.



\doxysubsection{Member Enumeration Documentation}
\mbox{\Hypertarget{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812f}\label{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812f}} 
\index{nntrainer::Backend@{nntrainer::Backend}!BackendType@{BackendType}}
\index{BackendType@{BackendType}!nntrainer::Backend@{nntrainer::Backend}}
\doxysubsubsection{\texorpdfstring{BackendType}{BackendType}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812f}{nntrainer\+::\+Backend\+::\+Backend\+Type}}\hspace{0.3cm}{\ttfamily [strong]}}



\mbox{\hyperlink{classnntrainer_1_1Backend}{Backend}} type enumeration. 

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{armcl@{armcl}!nntrainer::Backend@{nntrainer::Backend}}\index{nntrainer::Backend@{nntrainer::Backend}!armcl@{armcl}}}\mbox{\Hypertarget{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812fa9ab8a6b109087353742b6fb9b009a05f}\label{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812fa9ab8a6b109087353742b6fb9b009a05f}} 
armcl&Arm Compute Library for backend \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{blas@{blas}!nntrainer::Backend@{nntrainer::Backend}}\index{nntrainer::Backend@{nntrainer::Backend}!blas@{blas}}}\mbox{\Hypertarget{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812fa8307c9ea2a958ad9969c49060328c067}\label{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812fa8307c9ea2a958ad9969c49060328c067}} 
blas&Libopenblas for backend \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{base@{base}!nntrainer::Backend@{nntrainer::Backend}}\index{nntrainer::Backend@{nntrainer::Backend}!base@{base}}}\mbox{\Hypertarget{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812fa593616de15330c0fb2d55e55410bf994}\label{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812fa593616de15330c0fb2d55e55410bf994}} 
base&Internally implemented operations for backend \\
\hline

\end{DoxyEnumFields}


Definition at line 33 of file delegate.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1Backend_a062dcdd2888bab4663d5f40e6ca72d6d}\label{classnntrainer_1_1Backend_a062dcdd2888bab4663d5f40e6ca72d6d}} 
\index{nntrainer::Backend@{nntrainer::Backend}!Backend@{Backend}}
\index{Backend@{Backend}!nntrainer::Backend@{nntrainer::Backend}}
\doxysubsubsection{\texorpdfstring{Backend()}{Backend()}}
{\footnotesize\ttfamily nntrainer\+::\+Backend\+::\+Backend (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812f}{Backend\+Type}}}]{backend = {\ttfamily \mbox{\hyperlink{classnntrainer_1_1Backend_a281db78916562e15adf9b6dd5e3f812fa593616de15330c0fb2d55e55410bf994}{Backend\+Type\+::base}}},  }\item[{int}]{num\+\_\+t = {\ttfamily 1} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Construct a new \mbox{\hyperlink{classnntrainer_1_1Backend}{Backend}} object. 


\begin{DoxyParams}{Parameters}
{\em backend} & \mbox{\hyperlink{classnntrainer_1_1Backend}{Backend}} of be used. Defaults to base backend \\
\hline
{\em num\+\_\+t} & Number of threads. Defaults to 1 thread \\
\hline
\end{DoxyParams}


Definition at line 45 of file delegate.\+h.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classnntrainer_1_1Backend_a00d1aefcd1831bcaf475b8dc7105260f}\label{classnntrainer_1_1Backend_a00d1aefcd1831bcaf475b8dc7105260f}} 
\index{nntrainer::Backend@{nntrainer::Backend}!setNumThreads@{setNumThreads}}
\index{setNumThreads@{setNumThreads}!nntrainer::Backend@{nntrainer::Backend}}
\doxysubsubsection{\texorpdfstring{setNumThreads()}{setNumThreads()}}
{\footnotesize\ttfamily void nntrainer\+::\+Backend\+::set\+Num\+Threads (\begin{DoxyParamCaption}\item[{unsigned int}]{num\+\_\+threads }\end{DoxyParamCaption})}



Set the number of threads for the backend if supported. 


\begin{DoxyParams}{Parameters}
{\em num\+\_\+threads} & Number of threads \\
\hline
\end{DoxyParams}


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