\section{Gradient\+Zero\+Visitor Class Reference}
\label{classmlpack_1_1ann_1_1GradientZeroVisitor}\index{Gradient\+Zero\+Visitor@{Gradient\+Zero\+Visitor}}


Inheritance diagram for Gradient\+Zero\+Visitor\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=152pt]{classmlpack_1_1ann_1_1GradientZeroVisitor__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Gradient\+Zero\+Visitor} ()
\begin{DoxyCompactList}\small\item\em Set the gradient to zero for the given module. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Layer\+Type $>$ }\\void \textbf{ operator()} (Layer\+Type $\ast$layer) const
\begin{DoxyCompactList}\small\item\em Set the gradient to zero. \end{DoxyCompactList}\item 
void \textbf{ operator()} (\textbf{ More\+Types} layer) const
\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 27 of file gradient\+\_\+zero\+\_\+visitor.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1GradientZeroVisitor_aa2cc6d8ff51ab7a8bb44f18e528286e8}} 
\index{mlpack\+::ann\+::\+Gradient\+Zero\+Visitor@{mlpack\+::ann\+::\+Gradient\+Zero\+Visitor}!Gradient\+Zero\+Visitor@{Gradient\+Zero\+Visitor}}
\index{Gradient\+Zero\+Visitor@{Gradient\+Zero\+Visitor}!mlpack\+::ann\+::\+Gradient\+Zero\+Visitor@{mlpack\+::ann\+::\+Gradient\+Zero\+Visitor}}
\subsubsection{Gradient\+Zero\+Visitor()}
{\footnotesize\ttfamily \textbf{ Gradient\+Zero\+Visitor} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Set the gradient to zero for the given module. 



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



Set the gradient to zero. 

\mbox{\label{classmlpack_1_1ann_1_1GradientZeroVisitor_ae35578e7ff874a320fe762bc0edfff04}} 
\index{mlpack\+::ann\+::\+Gradient\+Zero\+Visitor@{mlpack\+::ann\+::\+Gradient\+Zero\+Visitor}!operator()@{operator()}}
\index{operator()@{operator()}!mlpack\+::ann\+::\+Gradient\+Zero\+Visitor@{mlpack\+::ann\+::\+Gradient\+Zero\+Visitor}}
\subsubsection{operator()()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void 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-\/3.\+3.\+2/src/mlpack/methods/ann/visitor/\textbf{ gradient\+\_\+zero\+\_\+visitor.\+hpp}\end{DoxyCompactItemize}
