From 0b81bd62d390de306c8c94dbcada27385f73f59a Mon Sep 17 00:00:00 2001 From: SunAhong1993 <48579383+SunAhong1993@users.noreply.github.com> Date: Wed, 28 Aug 2019 21:55:19 +0800 Subject: [PATCH] Update Pooling.md --- caffe2fluid/doc/Pooling.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/caffe2fluid/doc/Pooling.md b/caffe2fluid/doc/Pooling.md index 82c19dc..ef0fe38 100644 --- a/caffe2fluid/doc/Pooling.md +++ b/caffe2fluid/doc/Pooling.md @@ -35,15 +35,15 @@ paddle.fluid.layers.pool2d( #### 输出大小 Caffe:输出大小计算方式如下所示, ``` -H_out = (H_in-ksize[0]+2*padding[0])/strides[0]+1 -W_out = (W_in-ksize[1]+2*padding[1])/strides[1]+1 +H_out = (H_in-ksize[0]+2*padding[0]+strides[0]-1)/strides[0]+1 +W_out = (W_in-ksize[1]+2*padding[1]+strides[1]-1)/strides[1]+1 ``` PaddlePaddle:`ceil_mode`为`Ture`时,输出大小计算方式与Caffe一致;当`ceil_mode`为`False`时,输出大小计算方式如下所示, ``` # ceil_model为False时,计算公式 -H_out = (H_in-ksize[0]+2*padding[0]+strides[0]-1)/strides[0]+1 -W_out = (W_in-ksize[1]+2*padding[1]+strides[1]-1)/strides[1]+1 +H_out = (H_in-ksize[0]+2*padding[0])/strides[0]+1 +W_out = (W_in-ksize[1]+2*padding[1])/strides[1]+1 ``` #### 池化方式 -- GitLab