From 60305196b8d5c07a01ba524b4af084efbfb8b77e Mon Sep 17 00:00:00 2001 From: dengkaipeng Date: Sun, 24 Feb 2019 22:30:15 +0800 Subject: [PATCH] fix spell mistakes. test=develop --- paddle/fluid/operators/pool_op.cc | 6 +++--- python/paddle/fluid/layers/nn.py | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/paddle/fluid/operators/pool_op.cc b/paddle/fluid/operators/pool_op.cc index 7e1df3b9ef..4f6f779c1d 100644 --- a/paddle/fluid/operators/pool_op.cc +++ b/paddle/fluid/operators/pool_op.cc @@ -204,7 +204,7 @@ void Pool2dOpMaker::Make() { .SetDefault(false); AddAttr( "ceil_mode", - "(bool, default false) Wether to use the ceil function to calculate " + "(bool, default false) Whether to use the ceil function to calculate " "output height and width. False is the default. If it is set to False, " "the floor function will be used.") .SetDefault(false); @@ -333,7 +333,7 @@ void Pool3dOpMaker::Make() { AddAttr( "global_pooling", "(bool, default false) Whether to use the global pooling. " - "If global_pooling = true, ksize and paddings wille be ignored.") + "If global_pooling = true, ksize and paddings will be ignored.") .SetDefault(false); AddAttr>( "strides", @@ -368,7 +368,7 @@ void Pool3dOpMaker::Make() { .SetDefault(false); AddAttr( "ceil_mode", - "(bool, default false) Wether to use the ceil function to calculate " + "(bool, default false) Whether to use the ceil function to calculate " "output height and width. False is the default. If it is set to False, " "the floor function will be used.") .SetDefault(false); diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 1f971df934..cf3564b41e 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -2542,8 +2542,11 @@ def pool3d(input, the number of channels, D is the depth of the feature, H is the height of the feature, and W is the width of the feature. - pool_size (int): ${ksize_comment} - pool_type (str): ${pooling_type_comment} + pool_size (int|list|tuple): The pool kernel size. If pool kernel size + is a tuple or list, it must contain three integers, + (pool_size_Depth, pool_size_Height, pool_size_Width). + Otherwise, the pool kernel size will be the cube of an int. + pool_type (string): ${pooling_type_comment} pool_stride (int): stride of the pooling layer. pool_padding (int): padding size. global_pooling (bool): ${global_pooling_comment} -- GitLab