\hypertarget{classnntrainer_1_1FuncDataProducer}{}\doxysection{nntrainer\+::Func\+Data\+Producer Class Reference}
\label{classnntrainer_1_1FuncDataProducer}\index{nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}}


\mbox{\hyperlink{classnntrainer_1_1FuncDataProducer}{Func\+Data\+Producer}} which contains a callback and returns back.  




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



Inheritance diagram for nntrainer\+::Func\+Data\+Producer\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=235pt]{classnntrainer_1_1FuncDataProducer__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for nntrainer\+::Func\+Data\+Producer\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=235pt]{classnntrainer_1_1FuncDataProducer__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classnntrainer_1_1FuncDataProducer_ac01460cbe15f36bc47b3ab3ec810c0c4}{Func\+Data\+Producer}} (datagen\+\_\+cb datagen\+\_\+cb, void $\ast$user\+\_\+data\+\_\+)
\begin{DoxyCompactList}\small\item\em Construct a new Func Data Producer object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1FuncDataProducer_a4a1e2b1175e49fe12d938db4047a39ed}{$\sim$\+Func\+Data\+Producer}} ()
\begin{DoxyCompactList}\small\item\em Destroy the Func Data Producer object. \end{DoxyCompactList}\item 
const std\+::string \mbox{\hyperlink{classnntrainer_1_1FuncDataProducer_a18ce5cac94bd853f473eae10523337d1}{get\+Type}} () const override
\begin{DoxyCompactList}\small\item\em Get the producer type. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{classnntrainer_1_1FuncDataProducer_a64335f98c596f897264d5c393eefdaf1}{set\+Property}} (const std\+::vector$<$ std\+::string $>$ \&properties) override
\item 
\mbox{\hyperlink{classnntrainer_1_1DataProducer_a68a584a2abd402afb289fb79dc79426f}{Data\+Producer\+::\+Generator}} \mbox{\hyperlink{classnntrainer_1_1FuncDataProducer_a7237e5cde6cb712271d62204e0ce53c0}{finalize}} (const std\+::vector$<$ Tensor\+Dim $>$ \&input\+\_\+dims, const std\+::vector$<$ Tensor\+Dim $>$ \&label\+\_\+dims, void $\ast$user\+\_\+data=nullptr) override
\item 
void \mbox{\hyperlink{classnntrainer_1_1FuncDataProducer_a8a816e38e324f6b09f48b9cdfad7b70c}{export\+To}} (\mbox{\hyperlink{classnntrainer_1_1Exporter}{Exporter}} \&exporter, const ml\+::train\+::\+Export\+Methods \&method) const override
\end{DoxyCompactItemize}
\doxysubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classnntrainer_1_1FuncDataProducer_ace4eeec028652d409c070f118b97fdec}\label{classnntrainer_1_1FuncDataProducer_ace4eeec028652d409c070f118b97fdec}} 
static const std\+::string {\bfseries type} = \char`\"{}callback\char`\"{}
\end{DoxyCompactItemize}
\doxysubsection*{Additional Inherited Members}


\doxysubsection{Detailed Description}
\mbox{\hyperlink{classnntrainer_1_1FuncDataProducer}{Func\+Data\+Producer}} which contains a callback and returns back. 



Definition at line 34 of file func\+\_\+data\+\_\+producer.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1FuncDataProducer_ac01460cbe15f36bc47b3ab3ec810c0c4}\label{classnntrainer_1_1FuncDataProducer_ac01460cbe15f36bc47b3ab3ec810c0c4}} 
\index{nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}!FuncDataProducer@{FuncDataProducer}}
\index{FuncDataProducer@{FuncDataProducer}!nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}}
\doxysubsubsection{\texorpdfstring{FuncDataProducer()}{FuncDataProducer()}}
{\footnotesize\ttfamily nntrainer\+::\+Func\+Data\+Producer\+::\+Func\+Data\+Producer (\begin{DoxyParamCaption}\item[{datagen\+\_\+cb}]{datagen\+\_\+cb,  }\item[{void $\ast$}]{user\+\_\+data\+\_\+ }\end{DoxyParamCaption})}



Construct a new Func Data Producer object. 


\begin{DoxyParams}{Parameters}
{\em datagen\+\_\+cb} & data callback \\
\hline
{\em user\+\_\+data\+\_\+} & user data \\
\hline
\end{DoxyParams}


Definition at line 22 of file func\+\_\+data\+\_\+producer.\+cpp.

\mbox{\Hypertarget{classnntrainer_1_1FuncDataProducer_a4a1e2b1175e49fe12d938db4047a39ed}\label{classnntrainer_1_1FuncDataProducer_a4a1e2b1175e49fe12d938db4047a39ed}} 
\index{nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}!````~FuncDataProducer@{$\sim$FuncDataProducer}}
\index{````~FuncDataProducer@{$\sim$FuncDataProducer}!nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}}
\doxysubsubsection{\texorpdfstring{$\sim$FuncDataProducer()}{~FuncDataProducer()}}
{\footnotesize\ttfamily nntrainer\+::\+Func\+Data\+Producer\+::$\sim$\+Func\+Data\+Producer (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Destroy the Func Data Producer object. 



Definition at line 26 of file func\+\_\+data\+\_\+producer.\+cpp.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{classnntrainer_1_1FuncDataProducer_a8a816e38e324f6b09f48b9cdfad7b70c}\label{classnntrainer_1_1FuncDataProducer_a8a816e38e324f6b09f48b9cdfad7b70c}} 
\index{nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}!exportTo@{exportTo}}
\index{exportTo@{exportTo}!nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}}
\doxysubsubsection{\texorpdfstring{exportTo()}{exportTo()}}
{\footnotesize\ttfamily void nntrainer\+::\+Func\+Data\+Producer\+::export\+To (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classnntrainer_1_1Exporter}{Exporter}} \&}]{exporter,  }\item[{const ml\+::train\+::\+Export\+Methods \&}]{method }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}







Reimplemented from \mbox{\hyperlink{classnntrainer_1_1DataProducer_ac99063a390b2187cf8ec4c95e6f9aa3f}{nntrainer\+::\+Data\+Producer}}.



Definition at line 73 of file func\+\_\+data\+\_\+producer.\+cpp.

\mbox{\Hypertarget{classnntrainer_1_1FuncDataProducer_a7237e5cde6cb712271d62204e0ce53c0}\label{classnntrainer_1_1FuncDataProducer_a7237e5cde6cb712271d62204e0ce53c0}} 
\index{nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}!finalize@{finalize}}
\index{finalize@{finalize}!nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}}
\doxysubsubsection{\texorpdfstring{finalize()}{finalize()}}
{\footnotesize\ttfamily \mbox{\hyperlink{classnntrainer_1_1DataProducer_a68a584a2abd402afb289fb79dc79426f}{Data\+Producer\+::\+Generator}} nntrainer\+::\+Func\+Data\+Producer\+::finalize (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ Tensor\+Dim $>$ \&}]{input\+\_\+dims,  }\item[{const std\+::vector$<$ Tensor\+Dim $>$ \&}]{label\+\_\+dims,  }\item[{void $\ast$}]{user\+\_\+data = {\ttfamily nullptr} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}







Reimplemented from \mbox{\hyperlink{classnntrainer_1_1DataProducer_aa6443d25036ccb3e85b284ca51022291}{nntrainer\+::\+Data\+Producer}}.



Definition at line 39 of file func\+\_\+data\+\_\+producer.\+cpp.

\mbox{\Hypertarget{classnntrainer_1_1FuncDataProducer_a18ce5cac94bd853f473eae10523337d1}\label{classnntrainer_1_1FuncDataProducer_a18ce5cac94bd853f473eae10523337d1}} 
\index{nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}!getType@{getType}}
\index{getType@{getType}!nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}}
\doxysubsubsection{\texorpdfstring{getType()}{getType()}}
{\footnotesize\ttfamily const std\+::string nntrainer\+::\+Func\+Data\+Producer\+::get\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}



Get the producer type. 

\begin{DoxyReturn}{Returns}
const std\+::string type representation 
\end{DoxyReturn}


Implements \mbox{\hyperlink{classnntrainer_1_1DataProducer_aa3f081fc338b4dbf18c6639a1b12daeb}{nntrainer\+::\+Data\+Producer}}.



Definition at line 28 of file func\+\_\+data\+\_\+producer.\+cpp.

\mbox{\Hypertarget{classnntrainer_1_1FuncDataProducer_a64335f98c596f897264d5c393eefdaf1}\label{classnntrainer_1_1FuncDataProducer_a64335f98c596f897264d5c393eefdaf1}} 
\index{nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}!setProperty@{setProperty}}
\index{setProperty@{setProperty}!nntrainer::FuncDataProducer@{nntrainer::FuncDataProducer}}
\doxysubsubsection{\texorpdfstring{setProperty()}{setProperty()}}
{\footnotesize\ttfamily void nntrainer\+::\+Func\+Data\+Producer\+::set\+Property (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ std\+::string $>$ \&}]{properties }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}







Reimplemented from \mbox{\hyperlink{classnntrainer_1_1DataProducer_adec84ff25c17552145cc8b3af842749d}{nntrainer\+::\+Data\+Producer}}.



Definition at line 32 of file func\+\_\+data\+\_\+producer.\+cpp.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classnntrainer_1_1FuncDataProducer_a64335f98c596f897264d5c393eefdaf1_cgraph}
\end{center}
\end{figure}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
dataset/\mbox{\hyperlink{func__data__producer_8h}{func\+\_\+data\+\_\+producer.\+h}}\item 
dataset/\mbox{\hyperlink{func__data__producer_8cpp}{func\+\_\+data\+\_\+producer.\+cpp}}\end{DoxyCompactItemize}
