13 #ifndef MLPACK_METHODS_ANN_VISITOR_ADD_VISITOR_HPP 14 #define MLPACK_METHODS_ANN_VISITOR_ADD_VISITOR_HPP 19 #include <boost/variant.hpp> 27 template <
typename... CustomLayers>
36 template<
typename LayerType>
43 LayerTypes<CustomLayers...> newLayer;
47 typename std::enable_if<
48 HasAddCheck<T, void(T::*)(LayerTypes<CustomLayers...>)>::value,
void>::type
49 LayerAdd(T* layer)
const;
53 typename std::enable_if<
54 !HasAddCheck<T, void(T::*)(LayerTypes<CustomLayers...>)>::value,
void>::type
55 LayerAdd(T* layer)
const;
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
AddVisitor(T newLayer)
Exposes the Add() method of the given module.
Definition: add_visitor_impl.hpp:24
AddVisitor exposes the Add() method of the given module.
Definition: add_visitor.hpp:28
void operator()(LayerType *layer) const
Exposes the Add() method.
Definition: add_visitor_impl.hpp:32