mlpack
Public Member Functions | List of all members
mlpack::ann::GradientVisitor Class Reference

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

#include <gradient_visitor.hpp>

Inheritance diagram for mlpack::ann::GradientVisitor:
Inheritance graph
[legend]
Collaboration diagram for mlpack::ann::GradientVisitor:
Collaboration graph
[legend]

Public Member Functions

 GradientVisitor (const arma::mat &input, const arma::mat &delta)
 Executes the Gradient() method of the given module using the input and delta parameter. More...
 
 GradientVisitor (const arma::mat &input, const arma::mat &delta, const size_t index)
 Executes the Gradient() method for the layer with the specified index.
 
template<typename LayerType >
void operator() (LayerType *layer) const
 Executes the Gradient() method.
 
void operator() (MoreTypes layer) const
 

Detailed Description

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

Constructor & Destructor Documentation

◆ GradientVisitor()

mlpack::ann::GradientVisitor::GradientVisitor ( const arma::mat &  input,
const arma::mat &  delta 
)
inline

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

GradientVisitor visitor class.


The documentation for this class was generated from the following files: