12 #ifndef MLPACK_METHODS_ANN_VISITOR_RESET_CELL_VISITOR_HPP 13 #define MLPACK_METHODS_ANN_VISITOR_RESET_CELL_VISITOR_HPP 18 #include <boost/variant.hpp> 33 template<
typename LayerType>
42 typename std::enable_if<
43 HasResetCellCheck<T, void(T::*)(const size_t)>::value,
void>::type
44 ResetCell(T* layer)
const;
49 typename std::enable_if<
50 !HasResetCellCheck<T, void(T::*)(const size_t)>::value,
void>::type
51 ResetCell(T* layer)
const;
58 #include "reset_cell_visitor_impl.hpp" ResetCellVisitor executes the ResetCell() function.
ResetCellVisitor(const size_t size)
Reset the cell using the given size.
void operator()(LayerType *layer) const
Execute the ResetCell() function.