Applies a 2D max pooling over an input signal composed of several input planes.
nn_module
Calls torch::nn_max_pool2d() during training.
State
The state is the value calculated by the public method $shapes_out().
Parameters
kernel_size :: integer()
The size of the window. Can be single number or a vector.
stride :: (integer(1))
The stride of the window. Can be a single number or a vector. Default: kernel_size
padding :: integer()
Implicit zero paddings on both sides of the input. Can be a single number or a tuple (padW,). Default: 0
dilation :: integer()
Controls the spacing between the kernel points; also known as the à trous algorithm. Default: 1
ceil_mode :: logical(1)
When True, will use ceil instead of floor to compute the output shape. Default: FALSE
Input and Output Channels
If return_indices is FALSE during construction, there is one input channel 'input' and one output channel 'output'. If return_indices is TRUE, there are two output channels 'output' and 'indices'. For an explanation see PipeOpTorch.
Examples
# Construct the PipeOppipeop = po("nn_max_pool2d")pipeop
# The available parameterspipeop$param_set