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;
73 #include "output_height_visitor_impl.hpp" OutputHeightVisitor exposes the OutputHeight() method of the given module.
boost::variant< Recurrent< arma::mat, arma::mat > *, RecurrentAttention< arma::mat, arma::mat > *, ReinforceNormal< arma::mat, arma::mat > *, Reparametrization< arma::mat, arma::mat > *, Select< arma::mat, arma::mat > *, Sequential< arma::mat, arma::mat, false > *, Sequential< arma::mat, arma::mat, true > *, Subview< arma::mat, arma::mat > *, VRClassReward< arma::mat, arma::mat > *, VirtualBatchNorm< arma::mat, arma::mat > *> MoreTypes
size_t operator()(LayerType *layer) const
Return the output height.