Skip to content

Commit

Permalink
[NNVM][POOL] bug fix. Remove the hardcode. (#1600)
Browse files Browse the repository at this point in the history
  • Loading branch information
srkreddy1238 authored and tqchen committed Aug 14, 2018
1 parent daa2569 commit bc7431b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnvm/src/top/nn/pooling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ inline bool Pool2DInferShape(const nnvm::NodeAttrs& attrs,
} else {
oshape[hidx] = ((dshape[hidx] + pad_h - param.pool_size[0] +
param.strides[0] - 1) / param.strides[0]) + 1;
oshape[widx] = ((dshape[3] + pad_w - param.pool_size[1] +
oshape[widx] = ((dshape[widx] + pad_w - param.pool_size[1] +
param.strides[1] - 1) / param.strides[1]) + 1;
}
NNVM_ASSIGN_OUTPUT_SHAPE(attrs, *out_shape, 0, oshape);
Expand Down

0 comments on commit bc7431b

Please sign in to comment.