|
Keraflow
Deep Learning for Python.
|
Pooling layer for sub-sampling (input_depth, input_row, input_col) inputs. More...
Public Member Functions | |
| def | __init__ |
Public Member Functions inherited from keraflow.layers.convolution.PoolingBase | |
| def | __init__ |
Pooling layer for sub-sampling (input_depth, input_row, input_col) inputs.
(nb_samples, input_depth, input_row, input_col)(nb_samples, input_depth, output_row, output_col)output_row and output_col are determined by pad and strides. For details, please see PoolingBase, ConvolutionBase. | def keraflow.layers.convolution.Pooling2D.__init__ | ( | self, | |
| mode, | |||
pool_size = (2, 2, |
|||
strides = None, |
|||
pad = 'valid', |
|||
| kwargs | |||
| ) |
| mode | str. 'max' or 'avg' for max and average pooling respectively. |
| pool_size | tuple of int. Shape of the pooling window. |
| strides | tuple of int. Steps for sliding the pooling window. |
| pad | str, 'valid' of 'same'. See PoolingBase, ConvolutionBase. |
| kwargs | see Layer.__init__. |