14 #ifndef MLPACK_METHODS_ANN_VISITOR_OUTPUT_HEIGHT_VISITOR_HPP 15 #define MLPACK_METHODS_ANN_VISITOR_OUTPUT_HEIGHT_VISITOR_HPP 19 #include <boost/variant.hpp> 31 template<
typename LayerType>
38 typename std::enable_if<
39 !HasInputHeight<T, size_t&(T::*)()>::value &&
40 !HasModelCheck<T>::value,
size_t>::type
41 LayerOutputHeight(T* layer)
const;
46 typename std::enable_if<
47 HasInputHeight<T, size_t&(T::*)()>::value &&
48 !HasModelCheck<T>::value,
size_t>::type
49 LayerOutputHeight(T* layer)
const;
53 typename std::enable_if<
54 !HasInputHeight<T, size_t&(T::*)()>::value &&
55 HasModelCheck<T>::value,
size_t>::type
56 LayerOutputHeight(T* layer)
const;
61 typename std::enable_if<
62 HasInputHeight<T, size_t&(T::*)()>::value &&
63 HasModelCheck<T>::value,
size_t>::type
64 LayerOutputHeight(T* layer)
const;
71 #include "output_height_visitor_impl.hpp" OutputWidthVisitor exposes the OutputHeight() method of the given module.
size_t operator()(LayerType *layer) const
Return the output height.