mlpack  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
mlpack::ann::DeterministicSetVisitor Class Reference

DeterministicSetVisitor set the deterministic parameter given the deterministic value. More...

Inheritance diagram for mlpack::ann::DeterministicSetVisitor:
Inheritance graph
[legend]

Public Member Functions

 DeterministicSetVisitor (const bool deterministic=true)
 Set the deterministic parameter given the current deterministic value. More...
 
template<typename LayerType >
void operator() (LayerType *layer) const
 Set the deterministic parameter. More...
 

Private Member Functions

template<typename T >
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. More...
 
template<typename T >
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 Model() function. More...
 
template<typename T >
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() function. More...
 
template<typename T >
std::enable_if< !HasDeterministicCheck< T, bool &(T::*)(void)>::value &&!HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, void >::type LayerDeterministic (T *layer) const
 Do not set the deterministic parameter if the module doesn't implement the Deterministic() or Model() function. More...
 

Private Attributes

const bool deterministic
 The deterministic parameter. More...
 

Detailed Description

DeterministicSetVisitor set the deterministic parameter given the deterministic value.

Definition at line 29 of file deterministic_set_visitor.hpp.

Constructor & Destructor Documentation

mlpack::ann::DeterministicSetVisitor::DeterministicSetVisitor ( const bool  deterministic = true)

Set the deterministic parameter given the current deterministic value.

Member Function Documentation

template<typename T >
std::enable_if< HasDeterministicCheck<T, bool&(T::*)(void)>::value && HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, void>::type mlpack::ann::DeterministicSetVisitor::LayerDeterministic ( T *  layer) const
private

Set the deterministic parameter if the module implements the Deterministic() and Model() function.

template<typename T >
std::enable_if< !HasDeterministicCheck<T, bool&(T::*)(void)>::value && HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, void>::type mlpack::ann::DeterministicSetVisitor::LayerDeterministic ( T *  layer) const
private

Set the deterministic parameter if the module implements the Model() function.

template<typename T >
std::enable_if< HasDeterministicCheck<T, bool&(T::*)(void)>::value && !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, void>::type mlpack::ann::DeterministicSetVisitor::LayerDeterministic ( T *  layer) const
private

Set the deterministic parameter if the module implements the Deterministic() function.

template<typename T >
std::enable_if< !HasDeterministicCheck<T, bool&(T::*)(void)>::value && !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, void>::type mlpack::ann::DeterministicSetVisitor::LayerDeterministic ( T *  layer) const
private

Do not set the deterministic parameter if the module doesn't implement the Deterministic() or Model() function.

template<typename LayerType >
void mlpack::ann::DeterministicSetVisitor::operator() ( LayerType *  layer) const

Set the deterministic parameter.

Member Data Documentation

const bool mlpack::ann::DeterministicSetVisitor::deterministic
private

The deterministic parameter.

Definition at line 41 of file deterministic_set_visitor.hpp.


The documentation for this class was generated from the following file: