Rate this Page

Class LPPool1dImpl#

Inheritance Relationships#

Base Type#

Class Documentation#

class LPPool1dImpl : public torch::nn::LPPoolImpl<1, LPPool1dImpl>#

Applies the LPPool1d function element-wise.

See https://pytorch.org/docs/main/nn.html#torch.nn.LPPool1d to learn about the exact behavior of this module.

See the documentation for torch::nn::LPPool1dOptions class to learn what constructor arguments are supported for this module.

Example:

LPPool1d model(LPPool1dOptions(1, 2).stride(5).ceil_mode(true));

Public Functions

Tensor forward(const Tensor &input)#