kernel_size: The size of the pooling window. If an integer n is given,
then the window size of the pooling layer is
1xn. A tuple of two
integers allows you to specify the dimensions as (
height, width).
•
stride: Defaults to kernel_size if nothing is passed in. If you pass in
an integer, the pooling window moves by integer
n amount after
completing its pooling operation on a set of entries. A tuple of two
integers allows you to specify (
vertical_shift, horizontal_shift).
•
padding: An integer n representing the zero padding to add on both
sides. A tuple of two integers allows you to specify (
vertical_padding,
horizontal_padding). Default = 0.
•
dilation: Similar to the dilation factor in the convolutional layer,
except with max pooling. An integer
Do'stlaringiz bilan baham: |