downsample
– Down-Sampling¶
-
theano.tensor.signal.downsample.
max_pool_2d
(input, ds, ignore_border=False)¶ 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.
-
downsample.
fft
(*todo)¶ [James has some code for this, but hasn’t gotten it into the source tree yet.]