Created by: NHZlX
fix #4889 (closed)
python usage:
tmp = paddle.layer.img_pool(
input=tmp,
pool_size=7,
stride=1,
pool_type=paddle.pooling.MaxWithMask())