# tensorplay.nn.functional.lp_pool2d

Source: https://www.tensorplay.cn/docs/generated/tensorplay.nn.functional.lp_pool2d.html

# tensorplay.nn.functional.lp_pool2d

tensorplay.nn.functional.lp_pool2d(input: TensorBase, norm_type, kernel_size, stride=None, ceil_mode: [bool](https://docs.python.org/3/library/functions.html#bool) = False) &#x2192; TensorBase[[source]](../_modules/tensorplay/nn/functional.html#lp_pool2d)

Apply a 2D power-average pooling over an input signal.

If the sum of all inputs to the power of p is zero, the gradient is set
to zero as well.

See LPPool2d for details.
