\hypertarget{classnntrainer_1_1MemoryData}{}\doxysection{nntrainer\+::Memory\+Data$<$ T $>$ Class Template Reference}
\label{classnntrainer_1_1MemoryData}\index{nntrainer::MemoryData$<$ T $>$@{nntrainer::MemoryData$<$ T $>$}}


\mbox{\hyperlink{classnntrainer_1_1MemoryData}{Memory\+Data}} Class.  




{\ttfamily \#include $<$memory\+\_\+data.\+h$>$}

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classnntrainer_1_1MemoryData_a0c5898a41c8ed614c5ff0f8fbeb41049}{Memory\+Data}} (T $\ast$addr)
\begin{DoxyCompactList}\small\item\em Constructor of Memory Data. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1MemoryData_a76e1155fa4d6567eb237b0b27ad5f309}{Memory\+Data}} (unsigned int mem\+\_\+id, Memory\+Data\+Validate\+Callback v\+\_\+cb, Memory\+Data\+Validate\+Callback i\+\_\+cb)
\begin{DoxyCompactList}\small\item\em Constructor of Memory Data. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classnntrainer_1_1MemoryData_af681eb038fb3b1d9e09a01c19acc3c2c}\label{classnntrainer_1_1MemoryData_af681eb038fb3b1d9e09a01c19acc3c2c}} 
\mbox{\hyperlink{classnntrainer_1_1MemoryData_af681eb038fb3b1d9e09a01c19acc3c2c}{Memory\+Data}} ()=delete
\begin{DoxyCompactList}\small\item\em Deleted constructor of Memory Data. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classnntrainer_1_1MemoryData_ad9c77a9b70865d290476cf5ff65c3d81}\label{classnntrainer_1_1MemoryData_ad9c77a9b70865d290476cf5ff65c3d81}} 
\mbox{\hyperlink{classnntrainer_1_1MemoryData_ad9c77a9b70865d290476cf5ff65c3d81}{Memory\+Data}} (Memory\+Data\+Validate\+Callback v\+\_\+cb, Memory\+Data\+Validate\+Callback i\+\_\+cb)=delete
\begin{DoxyCompactList}\small\item\em Constructor of \mbox{\hyperlink{classnntrainer_1_1MemoryData}{Memory\+Data}}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classnntrainer_1_1MemoryData_a11a736fa1bb2e66f398a408752fd8861}\label{classnntrainer_1_1MemoryData_a11a736fa1bb2e66f398a408752fd8861}} 
\mbox{\hyperlink{classnntrainer_1_1MemoryData_a11a736fa1bb2e66f398a408752fd8861}{Memory\+Data}} (T $\ast$addr, Memory\+Data\+Validate\+Callback v\+\_\+cb, Memory\+Data\+Validate\+Callback i\+\_\+cb)=delete
\begin{DoxyCompactList}\small\item\em Constructor of \mbox{\hyperlink{classnntrainer_1_1MemoryData}{Memory\+Data}}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classnntrainer_1_1MemoryData_abb824b2ec772927bd6dadcc52445eb2d}\label{classnntrainer_1_1MemoryData_abb824b2ec772927bd6dadcc52445eb2d}} 
virtual \mbox{\hyperlink{classnntrainer_1_1MemoryData_abb824b2ec772927bd6dadcc52445eb2d}{$\sim$\+Memory\+Data}} ()=default
\begin{DoxyCompactList}\small\item\em Destructor of Memory Data. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classnntrainer_1_1MemoryData_a2d6aa2e2c91bced8723757c0c1a3948f}\label{classnntrainer_1_1MemoryData_a2d6aa2e2c91bced8723757c0c1a3948f}} 
void \mbox{\hyperlink{classnntrainer_1_1MemoryData_a2d6aa2e2c91bced8723757c0c1a3948f}{set\+Addr}} (T $\ast$addr)
\begin{DoxyCompactList}\small\item\em Set address. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classnntrainer_1_1MemoryData_af517b5b721b18927174abd151af322a8}\label{classnntrainer_1_1MemoryData_af517b5b721b18927174abd151af322a8}} 
T $\ast$ \mbox{\hyperlink{classnntrainer_1_1MemoryData_af517b5b721b18927174abd151af322a8}{get\+Addr}} () const
\begin{DoxyCompactList}\small\item\em Get address. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classnntrainer_1_1MemoryData_ab2f215f39bf5dc375def581a2d69e93d}\label{classnntrainer_1_1MemoryData_ab2f215f39bf5dc375def581a2d69e93d}} 
void \mbox{\hyperlink{classnntrainer_1_1MemoryData_ab2f215f39bf5dc375def581a2d69e93d}{validate}} ()
\begin{DoxyCompactList}\small\item\em Validate memory data. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classnntrainer_1_1MemoryData_af582e1c88eb629bb47e0b57a1345b712}\label{classnntrainer_1_1MemoryData_af582e1c88eb629bb47e0b57a1345b712}} 
void \mbox{\hyperlink{classnntrainer_1_1MemoryData_af582e1c88eb629bb47e0b57a1345b712}{invalidate}} ()
\begin{DoxyCompactList}\small\item\em Invalidate memory data. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classnntrainer_1_1MemoryData_ab8273b95289ea151843e2695daf5990a}\label{classnntrainer_1_1MemoryData_ab8273b95289ea151843e2695daf5990a}} 
void \mbox{\hyperlink{classnntrainer_1_1MemoryData_ab8273b95289ea151843e2695daf5990a}{set\+Valid}} (bool v)
\begin{DoxyCompactList}\small\item\em Set valid. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename T = float$>$\newline
class nntrainer\+::\+Memory\+Data$<$ T $>$}

\mbox{\hyperlink{classnntrainer_1_1MemoryData}{Memory\+Data}} Class. 

Definition at line 26 of file memory\+\_\+data.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1MemoryData_a0c5898a41c8ed614c5ff0f8fbeb41049}\label{classnntrainer_1_1MemoryData_a0c5898a41c8ed614c5ff0f8fbeb41049}} 
\index{nntrainer::MemoryData$<$ T $>$@{nntrainer::MemoryData$<$ T $>$}!MemoryData@{MemoryData}}
\index{MemoryData@{MemoryData}!nntrainer::MemoryData$<$ T $>$@{nntrainer::MemoryData$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{MemoryData()}{MemoryData()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily template$<$typename T  = float$>$ \\
\mbox{\hyperlink{classnntrainer_1_1MemoryData}{nntrainer\+::\+Memory\+Data}}$<$ T $>$\+::\mbox{\hyperlink{classnntrainer_1_1MemoryData}{Memory\+Data}} (\begin{DoxyParamCaption}\item[{T $\ast$}]{addr }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [explicit]}}



Constructor of Memory Data. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em addr} & Memory data \\
\hline
\end{DoxyParams}


Definition at line 32 of file memory\+\_\+data.\+h.

\mbox{\Hypertarget{classnntrainer_1_1MemoryData_a76e1155fa4d6567eb237b0b27ad5f309}\label{classnntrainer_1_1MemoryData_a76e1155fa4d6567eb237b0b27ad5f309}} 
\index{nntrainer::MemoryData$<$ T $>$@{nntrainer::MemoryData$<$ T $>$}!MemoryData@{MemoryData}}
\index{MemoryData@{MemoryData}!nntrainer::MemoryData$<$ T $>$@{nntrainer::MemoryData$<$ T $>$}}
\doxysubsubsection{\texorpdfstring{MemoryData()}{MemoryData()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily template$<$typename T  = float$>$ \\
\mbox{\hyperlink{classnntrainer_1_1MemoryData}{nntrainer\+::\+Memory\+Data}}$<$ T $>$\+::\mbox{\hyperlink{classnntrainer_1_1MemoryData}{Memory\+Data}} (\begin{DoxyParamCaption}\item[{unsigned int}]{mem\+\_\+id,  }\item[{Memory\+Data\+Validate\+Callback}]{v\+\_\+cb,  }\item[{Memory\+Data\+Validate\+Callback}]{i\+\_\+cb }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [explicit]}}



Constructor of Memory Data. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em mem\+\_\+id} & validate callback. \\
\hline
\mbox{\texttt{ in}}  & {\em v\+\_\+cb} & validate callback. \\
\hline
\mbox{\texttt{ in}}  & {\em i\+\_\+cb} & invalidate callback. \\
\hline
\end{DoxyParams}


Definition at line 45 of file memory\+\_\+data.\+h.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
tensor/\mbox{\hyperlink{memory__data_8h}{memory\+\_\+data.\+h}}\end{DoxyCompactItemize}
