Poolings¶
Pooling type that paddle supported. Note these pooling types are used for sequence input, not for images.
Each PoolingType contains.
- name: pooling layer type name used by paddle.
-
class
paddle.trainer_config_helpers.poolings.
BasePoolingType
(name)¶ Base Pooling Type.
-
class
paddle.trainer_config_helpers.poolings.
MaxPooling
¶ Max pooling.
Return the very large values for each dimension in sequence or time steps.
\[max(samples\_of\_a\_sequence)\]
-
class
paddle.trainer_config_helpers.poolings.
AvgPooling
(strategy='average')¶ Average pooling.
Return the average values for each dimension in sequence or time steps.
\[sum(samples\_of\_a\_sequence)/sample\_num\]
-
class
paddle.trainer_config_helpers.poolings.
SumPooling
¶ Sum pooling.
Return the sum values of each dimension in sequence or time steps.
\[sum(samples\_of\_a\_sequence)\]
-
class
paddle.trainer_config_helpers.poolings.
SquareRootNPooling
¶ Square Root Pooling.
Return the square root values of each dimension in sequence or time steps.
\[sum(samples\_of\_a\_sequence)/sqrt(sample\_num)\]