Shortcuts

torch.nn.functional.lp_pool1d

torch.nn.functional.lp_pool1d(input, norm_type, kernel_size, stride=None, ceil_mode=False)[source][source]

Apply a 1D power-average pooling over an input signal composed of several input planes.

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

See LPPool1d for details.

Return type

Tensor

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources