14 #ifndef MLPACK_METHODS_ANN_VISITOR_RUN_SET_VISITOR_HPP 15 #define MLPACK_METHODS_ANN_VISITOR_RUN_SET_VISITOR_HPP 19 #include <boost/variant.hpp> 35 template<
typename LayerType>
47 typename std::enable_if<
48 HasRunCheck<T, bool&(T::*)(void)>::value &&
49 HasModelCheck<T>::value,
void>::type
50 LayerRun(T* layer)
const;
55 typename std::enable_if<
56 !HasRunCheck<T, bool&(T::*)(void)>::value &&
57 HasModelCheck<T>::value,
void>::type
58 LayerRun(T* layer)
const;
63 typename std::enable_if<
64 HasRunCheck<T, bool&(T::*)(void)>::value &&
65 !HasModelCheck<T>::value,
void>::type
66 LayerRun(T* layer)
const;
71 typename std::enable_if<
72 !HasRunCheck<T, bool&(T::*)(void)>::value &&
73 !HasModelCheck<T>::value,
void>::type
74 LayerRun(T* layer)
const;
RunSetVisitor set the run parameter given the run value.
Definition: run_set_visitor.hpp:28
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
void operator()(LayerType *layer) const
Set the run parameter.
Definition: run_set_visitor_impl.hpp:29
RunSetVisitor(const bool run=true)
Set the run parameter given the current run value.
Definition: run_set_visitor_impl.hpp:22