@@ -2139,12 +2139,16 @@ def pool2d(input,
2139
2139
input tensor is NCHW, where N is batch size, C is
2140
2140
the number of channels, H is the height of the
2141
2141
feature, and W is the width of the feature.
2142
- pool_size (int|list|tuple): The pool kernel size. If pool kernel size is a tuple,
2142
+ pool_size (int|list|tuple): The pool kernel size. If pool kernel size is a tuple or list ,
2143
2143
it must contain two integers, (pool_size_Height, pool_size_Width).
2144
2144
Otherwise, the pool kernel size will be a square of an int.
2145
2145
pool_type: ${pooling_type_comment}
2146
- pool_stride (int): stride of the pooling layer.
2147
- pool_padding (int): padding size.
2146
+ pool_stride (int|list|tuple): The pool stride size. If pool stride size is a tuple or list,
2147
+ it must contain two integers, (pool_stride_Height, pool_stride_Width).
2148
+ Otherwise, the pool stride size will be a square of an int.
2149
+ pool_padding (int|list|tuple): The pool padding size. If pool padding size is a tuple,
2150
+ it must contain two integers, (pool_padding_on_Height, pool_padding_on_Width).
2151
+ Otherwise, the pool padding size will be a square of an int.
2148
2152
global_pooling (bool): ${global_pooling_comment}
2149
2153
use_cudnn (bool): ${use_cudnn_comment}
2150
2154
ceil_mode (bool): ${ceil_mode_comment}
0 commit comments