From 5daf42b927cc8b720357aff75450baa5fa914790 Mon Sep 17 00:00:00 2001 From: SunAhong1993 <48579383+SunAhong1993@users.noreply.github.com> Date: Tue, 9 Apr 2019 16:52:22 +0800 Subject: [PATCH] Update Pooling.md --- caffe2fluid/doc/Pooling.md | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/caffe2fluid/doc/Pooling.md b/caffe2fluid/doc/Pooling.md index dfd6883..088ba1a 100644 --- a/caffe2fluid/doc/Pooling.md +++ b/caffe2fluid/doc/Pooling.md @@ -5,11 +5,11 @@ layer{ name: "pool" type: "Pooling" - bottom: "conv" + bottom: "data" top: "pool" - pooling_param{ + pooling_param { pool: MAX - kernel_size: 3 #必填项 + kernel_size: 3 # 必填项 stride: 1 pad: 0 } @@ -20,14 +20,14 @@ layer{ paddle.fluid.layers.pool2d( input, pool_size, - pool_type = 'max', - pool_stride = 1, - pool_padding = 0, - global_pooling = False, - use_cudnn = True, - ceil_mode = False, - name = None, - exclusive = True + pool_type='max', + pool_stride=1, + pool_padding=0, + global_pooling=False, + use_cudnn=True, + ceil_mode=False, + name=None, + exclusive=True ) ``` @@ -64,9 +64,9 @@ PaddlePaddle:`exclusive`参数为`True`的情况下,`avg`平均池化过程 layer{ name: "pool" type: "Pooling" - bottom: "conv" + bottom: "data" top: "pool" - pooling_param{ + pooling_param { pool: MAX kernel_size: 3 stride: 2 @@ -77,7 +77,9 @@ layer{ # PaddlePaddle示例: # 输入shape:(1,3,228,228) # 输出shape:(1,3,113,113) -pool1 = paddle.fluid.layers.pool2d(input = inputs , pool_size = 3, pool_type = 'max', pool_stride = 2, ceil_mode=False) +pool1 = paddle.fluid.layers.pool2d(input = inputs , pool_size = 3, + pool_type = 'max', pool_stride = 2, + ceil_mode=False) ``` -- GitLab