Shortcuts

Template Class LPPoolImpl

Inheritance Relationships

Base Type

Class Documentation

template<size_t D, typename Derived>
class torch::nn::LPPoolImpl : public torch::nn::Cloneable<Derived>

Base class for all (dimension-specialized) lppool modules.

Public Functions

LPPoolImpl(double norm_type, ExpandingArray<D> kernel_size)
LPPoolImpl(const LPPoolOptions<D> &options_)
void reset() override

reset() must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules.

void pretty_print(std::ostream &stream) const override

Pretty prints the LPPool{1,2}d module into the given stream.

Public Members

LPPoolOptions<D> options

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