\section{Gradient\+Set\+Visitor Class Reference}
\label{classmlpack_1_1ann_1_1GradientSetVisitor}\index{Gradient\+Set\+Visitor@{Gradient\+Set\+Visitor}}


\doxyref{Gradient\+Set\+Visitor}{p.}{classmlpack_1_1ann_1_1GradientSetVisitor} update the gradient parameter given the gradient set.  




Inheritance diagram for Gradient\+Set\+Visitor\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=160pt]{classmlpack_1_1ann_1_1GradientSetVisitor__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Gradient\+Set\+Visitor} (arma\+::mat \&gradient, size\+\_\+t offset=0)
\begin{DoxyCompactList}\small\item\em Update the gradient parameter given the gradient set. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Layer\+Type $>$ }\\size\+\_\+t \textbf{ operator()} (Layer\+Type $\ast$layer) const
\begin{DoxyCompactList}\small\item\em Update the gradient parameter. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ operator()} (\textbf{ More\+Types} layer) const
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\doxyref{Gradient\+Set\+Visitor}{p.}{classmlpack_1_1ann_1_1GradientSetVisitor} update the gradient parameter given the gradient set. 

Definition at line 26 of file gradient\+\_\+set\+\_\+visitor.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1GradientSetVisitor_ae447e8d12abf6d567ac409ac5a116d37}} 
\index{mlpack\+::ann\+::\+Gradient\+Set\+Visitor@{mlpack\+::ann\+::\+Gradient\+Set\+Visitor}!Gradient\+Set\+Visitor@{Gradient\+Set\+Visitor}}
\index{Gradient\+Set\+Visitor@{Gradient\+Set\+Visitor}!mlpack\+::ann\+::\+Gradient\+Set\+Visitor@{mlpack\+::ann\+::\+Gradient\+Set\+Visitor}}
\subsubsection{Gradient\+Set\+Visitor()}
{\footnotesize\ttfamily \textbf{ Gradient\+Set\+Visitor} (\begin{DoxyParamCaption}\item[{arma\+::mat \&}]{gradient,  }\item[{size\+\_\+t}]{offset = {\ttfamily 0} }\end{DoxyParamCaption})}



Update the gradient parameter given the gradient set. 



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1ann_1_1GradientSetVisitor_aeb8947a28d511a7a4ce42a1fc63f79ee}} 
\index{mlpack\+::ann\+::\+Gradient\+Set\+Visitor@{mlpack\+::ann\+::\+Gradient\+Set\+Visitor}!operator()@{operator()}}
\index{operator()@{operator()}!mlpack\+::ann\+::\+Gradient\+Set\+Visitor@{mlpack\+::ann\+::\+Gradient\+Set\+Visitor}}
\subsubsection{operator()()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily size\+\_\+t operator() (\begin{DoxyParamCaption}\item[{Layer\+Type $\ast$}]{layer }\end{DoxyParamCaption}) const}



Update the gradient parameter. 

\mbox{\label{classmlpack_1_1ann_1_1GradientSetVisitor_a19a2b78859e4e91b86170544dbd8ae09}} 
\index{mlpack\+::ann\+::\+Gradient\+Set\+Visitor@{mlpack\+::ann\+::\+Gradient\+Set\+Visitor}!operator()@{operator()}}
\index{operator()@{operator()}!mlpack\+::ann\+::\+Gradient\+Set\+Visitor@{mlpack\+::ann\+::\+Gradient\+Set\+Visitor}}
\subsubsection{operator()()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily size\+\_\+t operator() (\begin{DoxyParamCaption}\item[{\textbf{ More\+Types}}]{layer }\end{DoxyParamCaption}) const}



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/git/src/mlpack/methods/ann/visitor/\textbf{ gradient\+\_\+set\+\_\+visitor.\+hpp}\end{DoxyCompactItemize}
