13 #ifndef MLPACK_METHODS_ANN_VISITOR_RESET_VISITOR_HPP 14 #define MLPACK_METHODS_ANN_VISITOR_RESET_VISITOR_HPP 19 #include <boost/variant.hpp> 31 template<
typename LayerType>
38 typename std::enable_if<
39 HasResetCheck<T, void(T::*)()>::value &&
40 !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value,
void>::type
46 typename std::enable_if<
47 !HasResetCheck<T, void(T::*)()>::value &&
48 HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value,
void>::type
54 typename std::enable_if<
55 HasResetCheck<T, void(T::*)()>::value &&
56 HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value,
void>::type
62 typename std::enable_if<
63 !HasResetCheck<T, void(T::*)()>::value &&
64 !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value,
void>::type
72 #include "reset_visitor_impl.hpp" void operator()(LayerType *layer) const
Execute the Reset() function.
Linear algebra utility functions, generally performed on matrices or vectors.
ResetVisitor executes the Reset() function.
std::enable_if< HasResetCheck< T, void(T::*)()>::value &&!HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, void >::type ResetParameter(T *layer) const
Execute the Reset() function for a module which implements the Reset() function.