13 #ifndef MLPACK_METHODS_ANN_VISITOR_RESET_VISITOR_HPP 14 #define MLPACK_METHODS_ANN_VISITOR_RESET_VISITOR_HPP 18 #include <boost/variant.hpp> 30 template<
typename LayerType>
39 typename std::enable_if<
40 HasResetCheck<T, void(T::*)()>::value &&
41 !HasModelCheck<T>::value,
void>::type
42 ResetParameter(T* layer)
const;
47 typename std::enable_if<
48 !HasResetCheck<T, void(T::*)()>::value &&
49 HasModelCheck<T>::value,
void>::type
50 ResetParameter(T* layer)
const;
55 typename std::enable_if<
56 HasResetCheck<T, void(T::*)()>::value &&
57 HasModelCheck<T>::value,
void>::type
58 ResetParameter(T* layer)
const;
63 typename std::enable_if<
64 !HasResetCheck<T, void(T::*)()>::value &&
65 !HasModelCheck<T>::value,
void>::type
66 ResetParameter(T* layer)
const;
73 #include "reset_visitor_impl.hpp" 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
void operator()(LayerType *layer) const
Execute the Reset() function.
ResetVisitor executes the Reset() function.