Takes as input a N-D tensor, where N >= 2. It downscales the input image by
the specified factor, by keeping only the maximum value of non-overlapping
patches of size (ds[0],ds[1])
Parameters:
input (N-D theano tensor of input images.) – input images. Max pooling will be done over the 2 last dimensions.
ds (tuple of length 2) – factor by which to downscale. (2,2) will halve the image in each dimension.
ignore_border – boolean value. When True, (5,5) input with ds=(2,2) will generate a
(2,2) output. (3,3) otherwise.