未验证 提交 5daf42b9 编写于 作者: S SunAhong1993 提交者: GitHub

Update Pooling.md

上级 061988cc
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
layer{ layer{
name: "pool" name: "pool"
type: "Pooling" type: "Pooling"
bottom: "conv" bottom: "data"
top: "pool" top: "pool"
pooling_param{ pooling_param {
pool: MAX pool: MAX
kernel_size: 3 #必填项 kernel_size: 3 # 必填项
stride: 1 stride: 1
pad: 0 pad: 0
} }
...@@ -20,14 +20,14 @@ layer{ ...@@ -20,14 +20,14 @@ layer{
paddle.fluid.layers.pool2d( paddle.fluid.layers.pool2d(
input, input,
pool_size, pool_size,
pool_type = 'max', pool_type='max',
pool_stride = 1, pool_stride=1,
pool_padding = 0, pool_padding=0,
global_pooling = False, global_pooling=False,
use_cudnn = True, use_cudnn=True,
ceil_mode = False, ceil_mode=False,
name = None, name=None,
exclusive = True exclusive=True
) )
``` ```
...@@ -64,9 +64,9 @@ PaddlePaddle:`exclusive`参数为`True`的情况下,`avg`平均池化过程 ...@@ -64,9 +64,9 @@ PaddlePaddle:`exclusive`参数为`True`的情况下,`avg`平均池化过程
layer{ layer{
name: "pool" name: "pool"
type: "Pooling" type: "Pooling"
bottom: "conv" bottom: "data"
top: "pool" top: "pool"
pooling_param{ pooling_param {
pool: MAX pool: MAX
kernel_size: 3 kernel_size: 3
stride: 2 stride: 2
...@@ -77,7 +77,9 @@ layer{ ...@@ -77,7 +77,9 @@ layer{
# PaddlePaddle示例: # PaddlePaddle示例:
# 输入shape:(1,3,228,228) # 输入shape:(1,3,228,228)
# 输出shape:(1,3,113,113) # 输出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)
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册