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