Poolings¶
BasePoolingType¶
-
class
paddle.trainer_config_helpers.poolings.
BasePoolingType
(name) Base Pooling Type. Note these pooling types are used for sequence input, not for images. Each PoolingType contains one parameter:
参数: name (basestring) – pooling layer type name used by paddle.
AvgPooling¶
-
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\]
MaxPooling¶
-
class
paddle.trainer_config_helpers.poolings.
MaxPooling
(output_max_index=None) Max pooling.
Return the very large values for each dimension in sequence or time steps.
\[max(samples\_of\_a\_sequence)\]参数: output_max_index (bool|None) – True if output sequence max index instead of max value. None means use default value in proto.
SumPooling¶
-
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)\]
SquareRootNPooling¶
-
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)\]