14 #ifndef MLPACK_METHODS_ANN_VISITOR_DETERMINISTIC_SET_VISITOR_HPP 15 #define MLPACK_METHODS_ANN_VISITOR_DETERMINISTIC_SET_VISITOR_HPP 20 #include <boost/variant.hpp> 36 template<
typename LayerType>
46 typename std::enable_if<
47 HasDeterministicCheck<T, bool&(T::*)(void)>::value &&
48 HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value,
void>::type
54 typename std::enable_if<
55 !HasDeterministicCheck<T, bool&(T::*)(void)>::value &&
56 HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value,
void>::type
62 typename std::enable_if<
63 HasDeterministicCheck<T, bool&(T::*)(void)>::value &&
64 !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value,
void>::type
70 typename std::enable_if<
71 !HasDeterministicCheck<T, bool&(T::*)(void)>::value &&
72 !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value,
void>::type
80 #include "deterministic_set_visitor_impl.hpp"
Linear algebra utility functions, generally performed on matrices or vectors.
DeterministicSetVisitor set the deterministic parameter given the deterministic value.
void operator()(LayerType *layer) const
Set the deterministic parameter.
DeterministicSetVisitor(const bool deterministic=true)
Set the deterministic parameter given the current deterministic value.
std::enable_if< HasDeterministicCheck< T, bool &(T::*)(void)>::value &&HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, void >::type LayerDeterministic(T *layer) const
Set the deterministic parameter if the module implements the Deterministic() and Model() function...
const bool deterministic
The deterministic parameter.