Keraflow
Deep Learning for Python.
 All Classes Namespaces Functions Pages
keraflow.layers.convolution.PoolingBase Class Reference

Base layer for pooling layers. More...

Inheritance diagram for keraflow.layers.convolution.PoolingBase:
keraflow.layers.convolution.Pooling1D keraflow.layers.convolution.Pooling2D keraflow.layers.convolution.Pooling3D

Public Member Functions

def __init__
 

Detailed Description

Base layer for pooling layers.

Do not use this layer in your code.

Constructor & Destructor Documentation

def keraflow.layers.convolution.PoolingBase.__init__ (   self,
  mode,
  pool_size,
  strides = None,
  pad = 'valid',
  kwargs 
)
Parameters
modestr. 'max' or 'avg' for max and average pooling respectively.
pool_sizetuple of int. Shape of the pooling window.
stridestuple of int. Steps for sliding the pooling window.
padstr, 'valid' of 'same'. See descriptions below.
kwargssee Layer.__init__.
Note
The output shape and paddings of pooling ayers is calculated as described in ConvolutionBase.__init__. However, when theano is used as backend, we are unable to conduct tensorflow's asymmetric padding. Current solution is to perform symmetric padding with larger (out of front pad and back pad) padding and truncate the output to match the output shape (determined by the formula).