SumPool2d#
- class sinabs.layers.SumPool2d(kernel_size, stride=None, ceil_mode=False)[source]#
Non-spiking sumpooling layer to be used in analogue Torch models. It is identical to torch.nn.LPPool2d with p=1.
- Parameters:
kernel_size (int | Tuple[int, int]) – the size of the window
stride (int | Tuple[int, int]) – the stride of the window. Default value is kernel_size
ceil_mode (bool) – when True, will use ceil instead of floor to compute the output shape