Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #154 from zhongwen/pooling_size
Browse files Browse the repository at this point in the history
fix pooling output size
  • Loading branch information
winstywang committed May 15, 2015
2 parents 0b33b86 + 9a81b41 commit 47660af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layer/pooling_layer-inl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ class PoolingLayer : public ILayer<xpu> {

mshadow::Shape<4> oshape = mshadow::
Shape4(ishape[0], ishape[1],
std::min(ishape[2] + 2 * param_.pad_y - ksize_y + kstride-1, ishape[2] + 2 * param_.pad_y - 1) / kstride + 1,
std::min(ishape[3] + 2 * param_.pad_x - ksize_x + kstride-1, ishape[3] + 2 * param_.pad_x- 1) / kstride + 1);
(ishape[2] + 2 * param_.pad_y - ksize_y) / kstride + 1,
(ishape[3] + 2 * param_.pad_x - ksize_x) / kstride + 1);
nodes_out[0]->data.shape_ = oshape;
// use 2 temp state to store pooled result (state 2 for cudnn)
p_cstate->states.resize(2);
Expand Down

0 comments on commit 47660af

Please sign in to comment.