12 #ifndef MLPACK_METHODS_ANN_VISITOR_ADD_VISITOR_IMPL_HPP 13 #define MLPACK_METHODS_ANN_VISITOR_ADD_VISITOR_IMPL_HPP 22 template<
typename... CustomLayers>
25 newLayer(
std::move(newLayer))
30 template<
typename... CustomLayers>
31 template<
typename LayerType>
34 LayerAdd<LayerType>(layer);
37 template<
typename... CustomLayers>
40 layer.apply_visitor(*
this);
43 template<
typename... CustomLayers>
45 inline typename std::enable_if<
46 HasAddCheck<T, void(T::*)(LayerTypes<CustomLayers...>)>::value,
void>::type
52 template<
typename... CustomLayers>
54 inline typename std::enable_if<
55 !HasAddCheck<T, void(T::*)(LayerTypes<CustomLayers...>)>::value,
void>::type
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
Definition: pointer_wrapper.hpp:23
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