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>
40 typename std::enable_if<
41 !HasInputHeight<T, size_t&(T::*)()>::value &&
42 !HasModelCheck<T>::value,
size_t>::type
43 LayerOutputHeight(T* layer)
const;
48 typename std::enable_if<
49 HasInputHeight<T, size_t&(T::*)()>::value &&
50 !HasModelCheck<T>::value,
size_t>::type
51 LayerOutputHeight(T* layer)
const;
55 typename std::enable_if<
56 !HasInputHeight<T, size_t&(T::*)()>::value &&
57 HasModelCheck<T>::value,
size_t>::type
58 LayerOutputHeight(T* layer)
const;
63 typename std::enable_if<
64 HasInputHeight<T, size_t&(T::*)()>::value &&
65 HasModelCheck<T>::value,
size_t>::type
66 LayerOutputHeight(T* layer)
const;
OutputHeightVisitor exposes the OutputHeight() method of the given module.
Definition: output_height_visitor.hpp:27
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
size_t operator()(LayerType *layer) const
Return the output height.
Definition: output_height_visitor_impl.hpp:23