AddVisitor exposes the Add() method of the given module.
More...
|
| template<typename T > |
| std::enable_if< HasAddCheck< T, void(T::*)(LayerTypes)>::value, void >::type | LayerAdd (T *layer) const |
| | Only add the layer if the module implements the Add() function. More...
|
| |
| template<typename T > |
| std::enable_if< !HasAddCheck< T, void(T::*)(LayerTypes)>::value, void >::type | LayerAdd (T *layer) const |
| | Do not add the layer if the module doesn't implement the Add() function. More...
|
| |
AddVisitor exposes the Add() method of the given module.
Definition at line 27 of file add_visitor.hpp.
template<typename T >
| mlpack::ann::AddVisitor::AddVisitor |
( |
T |
newLayer | ) |
|
Exposes the Add() method of the given module.
template<typename T >
| std::enable_if< HasAddCheck<T, void(T::*)(LayerTypes)>::value, void>::type mlpack::ann::AddVisitor::LayerAdd |
( |
T * |
layer | ) |
const |
|
private |
Only add the layer if the module implements the Add() function.
template<typename T >
| std::enable_if< !HasAddCheck<T, void(T::*)(LayerTypes)>::value, void>::type mlpack::ann::AddVisitor::LayerAdd |
( |
T * |
layer | ) |
const |
|
private |
Do not add the layer if the module doesn't implement the Add() function.
template<typename LayerType >
| void mlpack::ann::AddVisitor::operator() |
( |
LayerType * |
layer | ) |
const |
Exposes the Add() method.
The documentation for this class was generated from the following file: