mxnet
Public Member Functions | Public Attributes | List of all members
mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim > Struct Template Reference

pooling expression, do reduction over local patches of a image More...

#include <spatial_pool.h>

Inheritance diagram for mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >:
Inheritance graph
Collaboration diagram for mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >:
Collaboration graph

Public Member Functions

 PoolingExp (const SrcExp &src, index_t ksize_y, index_t ksize_x, index_t kstride_y, index_t kstride_x)
 constructor More...
 
 PoolingExp (const SrcExp &src, Shape< 2 > pshape, index_t ksize_y, index_t ksize_x, index_t kstride_y, index_t kstride_x)
 constructor, specify shape More...
 
- Public Member Functions inherited from mshadow::expr::MakeTensorExp< PoolingExp< Reducer, SrcExp, DType, srcdim >, SrcExp, srcdim, DType >
const PoolingExp< Reducer, SrcExp, DType, srcdim > & real_self (void) const
 true self of subtype More...
 
- Public Member Functions inherited from mshadow::expr::Exp< MakeTensorExp< PoolingExp< Reducer, SrcExp, DType, srcdim >, SrcExp, dim, DType >, DType, type::kChainer >
const MakeTensorExp< PoolingExp< Reducer, SrcExp, DType, srcdim >, SrcExp, dim, DType > & self (void) const
 
MakeTensorExp< PoolingExp< Reducer, SrcExp, DType, srcdim >, SrcExp, dim, DType > * ptrself (void)
 

Public Attributes

const SrcExp & src_
 source operand More...
 
index_t ksize_y_
 kernel size in height More...
 
index_t ksize_x_
 kernel size in width More...
 
index_t kstride_y_
 kernel stride in y directory More...
 
index_t kstride_x_
 kernel stride in x directory More...
 
index_t src_height_
 source height shape[1] More...
 
index_t src_width_
 source width shape[0] More...
 
- Public Attributes inherited from mshadow::expr::MakeTensorExp< PoolingExp< Reducer, SrcExp, DType, srcdim >, SrcExp, srcdim, DType >
Shape< dim > shape_
 the shape of this expression More...
 

Detailed Description

template<typename Reducer, typename SrcExp, typename DType, int srcdim>
struct mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >

pooling expression, do reduction over local patches of a image

Template Parameters
Reducerreduction method during pooling
SrcExpsource expression to be pooled from
DTypethe content data type
srcdimdimension of src

Constructor & Destructor Documentation

template<typename Reducer, typename SrcExp, typename DType, int srcdim>
mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >::PoolingExp ( const SrcExp &  src,
index_t  ksize_y,
index_t  ksize_x,
index_t  kstride_y,
index_t  kstride_x 
)
inline

constructor

template<typename Reducer, typename SrcExp, typename DType, int srcdim>
mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >::PoolingExp ( const SrcExp &  src,
Shape< 2 >  pshape,
index_t  ksize_y,
index_t  ksize_x,
index_t  kstride_y,
index_t  kstride_x 
)
inline

constructor, specify shape

Member Data Documentation

template<typename Reducer, typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >::ksize_x_

kernel size in width

template<typename Reducer, typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >::ksize_y_

kernel size in height

template<typename Reducer, typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >::kstride_x_

kernel stride in x directory

template<typename Reducer, typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >::kstride_y_

kernel stride in y directory

template<typename Reducer, typename SrcExp, typename DType, int srcdim>
const SrcExp& mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >::src_

source operand

template<typename Reducer, typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >::src_height_

source height shape[1]

template<typename Reducer, typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::PoolingExp< Reducer, SrcExp, DType, srcdim >::src_width_

source width shape[0]


The documentation for this struct was generated from the following file: