Shortcuts

Class LPPool2dImpl

Inheritance Relationships

Base Type

Class Documentation

class LPPool2dImpl : public torch::nn::LPPoolImpl<2, LPPool2dImpl>

Applies the LPPool2d function element-wise.

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

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

Example:

LPPool2d model(LPPool2dOptions(1, std::vector<int64_t>({3, 4})).stride({5,
6}).ceil_mode(true));

Public Functions

Tensor forward(const Tensor &input)

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