mlpack
delta_visitor.hpp
Go to the documentation of this file.
1 
13 #ifndef MLPACK_METHODS_ANN_VISITOR_DELTA_VISITOR_HPP
14 #define MLPACK_METHODS_ANN_VISITOR_DELTA_VISITOR_HPP
15 
18 
19 #include <boost/variant.hpp>
20 
21 namespace mlpack {
22 namespace ann {
23 
27 class DeltaVisitor : public boost::static_visitor<arma::mat&>
28 {
29  public:
31  template<typename LayerType>
32  arma::mat& operator()(LayerType* layer) const;
33 
34  arma::mat& operator()(MoreTypes layer) const;
35 };
36 
37 } // namespace ann
38 } // namespace mlpack
39 
40 // Include implementation.
41 #include "delta_visitor_impl.hpp"
42 
43 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
arma::mat & operator()(LayerType *layer) const
Return the delta parameter.
Definition: delta_visitor_impl.hpp:23
DeltaVisitor exposes the delta parameter of the given module.
Definition: delta_visitor.hpp:27