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
boost::variant< Recurrent< arma::mat, arma::mat > *, RecurrentAttention< arma::mat, arma::mat > *, ReinforceNormal< arma::mat, arma::mat > *, Reparametrization< arma::mat, arma::mat > *, Select< arma::mat, arma::mat > *, Sequential< arma::mat, arma::mat, false > *, Sequential< arma::mat, arma::mat, true > *, Subview< arma::mat, arma::mat > *, VRClassReward< arma::mat, arma::mat > *, VirtualBatchNorm< arma::mat, arma::mat > *> MoreTypes
strip_type.hpp
Definition: add_to_po.hpp:21
arma::mat & operator()(LayerType *layer) const
Return the delta parameter.
DeltaVisitor exposes the delta parameter of the given module.