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