GradientVisitor Class Reference

SearchModeVisitor executes the Gradient() method of the given module using the input and delta parameter. More...

Inheritance diagram for GradientVisitor:

Public Member Functions

 GradientVisitor (arma::mat &&input, arma::mat &&delta)
 Executes the Gradient() method of the given module using the input and delta parameter. More...

 
 GradientVisitor (arma::mat &&input, arma::mat &&delta, const size_t index)
 Executes the Gradient() method for the layer with the specified index. More...

 
template
<
typename
LayerType
>
void operator() (LayerType *layer) const
 Executes the Gradient() method. More...

 
void operator() (MoreTypes layer) const
 

Detailed Description

SearchModeVisitor executes the Gradient() method of the given module using the input and delta parameter.

Definition at line 28 of file gradient_visitor.hpp.

Constructor & Destructor Documentation

◆ GradientVisitor() [1/2]

GradientVisitor ( arma::mat &&  input,
arma::mat &&  delta 
)

Executes the Gradient() method of the given module using the input and delta parameter.

◆ GradientVisitor() [2/2]

GradientVisitor ( arma::mat &&  input,
arma::mat &&  delta,
const size_t  index 
)

Executes the Gradient() method for the layer with the specified index.

Member Function Documentation

◆ operator()() [1/2]

void operator() ( LayerType *  layer) const

Executes the Gradient() method.

◆ operator()() [2/2]

void operator() ( MoreTypes  layer) const

The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.2.1/src/mlpack/methods/ann/visitor/gradient_visitor.hpp