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

unpack local (overlap) patches of image to column of mat, can be used to implement convolution, this expression allow unpack of a batch this is a version support unpacking multiple images after getting unpacked mat, we can use: output = dot(weight, mat) to get covolved results, the relations: More...

#include <unpack_patch2col.h>

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

Public Member Functions

 UnpackPatchToColXExp (const SrcExp &img, index_t psize_y, index_t psize_x, index_t pstride_y, index_t pstride_x, index_t pdilate_y, index_t pdilate_x)
 constructor More...
 
- Public Member Functions inherited from mshadow::expr::MakeTensorExp< UnpackPatchToColXExp< SrcExp, DType, srcdim >, SrcExp, 2, DType >
const UnpackPatchToColXExp< SrcExp, DType, srcdim > & real_self (void) const
 true self of subtype More...
 
- Public Member Functions inherited from mshadow::expr::Exp< MakeTensorExp< UnpackPatchToColXExp< SrcExp, DType, srcdim >, SrcExp, dim, DType >, DType, type::kChainer >
const MakeTensorExp< UnpackPatchToColXExp< SrcExp, DType, srcdim >, SrcExp, dim, DType > & self (void) const
 
MakeTensorExp< UnpackPatchToColXExp< SrcExp, DType, srcdim >, SrcExp, dim, DType > * ptrself (void)
 

Public Attributes

const SrcExp & img_
 source operand More...
 
index_t psize_y_
 patch height More...
 
index_t psize_x_
 patch width More...
 
index_t pstride_y_
 patch stride More...
 
index_t pstride_x_
 
index_t pdilate_y_
 patch dilate More...
 
index_t pdilate_x_
 
index_t i_channel_
 number of input channel More...
 
index_t i_height_
 height of img More...
 
index_t i_width_
 width of img More...
 
- Public Attributes inherited from mshadow::expr::MakeTensorExp< UnpackPatchToColXExp< SrcExp, DType, srcdim >, SrcExp, 2, DType >
Shape< dim > shape_
 the shape of this expression More...
 

Detailed Description

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

unpack local (overlap) patches of image to column of mat, can be used to implement convolution, this expression allow unpack of a batch this is a version support unpacking multiple images after getting unpacked mat, we can use: output = dot(weight, mat) to get covolved results, the relations:

Template Parameters
SrcExpsource expression
dstdimdestination dimension

Constructor & Destructor Documentation

template<typename SrcExp, typename DType, int srcdim>
mshadow::expr::UnpackPatchToColXExp< SrcExp, DType, srcdim >::UnpackPatchToColXExp ( const SrcExp &  img,
index_t  psize_y,
index_t  psize_x,
index_t  pstride_y,
index_t  pstride_x,
index_t  pdilate_y,
index_t  pdilate_x 
)
inline

constructor

Member Data Documentation

template<typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::UnpackPatchToColXExp< SrcExp, DType, srcdim >::i_channel_

number of input channel

template<typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::UnpackPatchToColXExp< SrcExp, DType, srcdim >::i_height_

height of img

template<typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::UnpackPatchToColXExp< SrcExp, DType, srcdim >::i_width_

width of img

template<typename SrcExp, typename DType, int srcdim>
const SrcExp& mshadow::expr::UnpackPatchToColXExp< SrcExp, DType, srcdim >::img_

source operand

template<typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::UnpackPatchToColXExp< SrcExp, DType, srcdim >::pdilate_x_
template<typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::UnpackPatchToColXExp< SrcExp, DType, srcdim >::pdilate_y_

patch dilate

template<typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::UnpackPatchToColXExp< SrcExp, DType, srcdim >::psize_x_

patch width

template<typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::UnpackPatchToColXExp< SrcExp, DType, srcdim >::psize_y_

patch height

template<typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::UnpackPatchToColXExp< SrcExp, DType, srcdim >::pstride_x_
template<typename SrcExp, typename DType, int srcdim>
index_t mshadow::expr::UnpackPatchToColXExp< SrcExp, DType, srcdim >::pstride_y_

patch stride


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