Shortcuts

Template Class AvgPoolImpl

Inheritance Relationships

Base Type

Class Documentation

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

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

Public Functions

inline AvgPoolImpl(ExpandingArray<D> kernel_size)
explicit AvgPoolImpl(const AvgPoolOptions<D> &options_)
virtual void reset() override

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

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

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

Public Members

AvgPoolOptions<D> options

The options with which this Module was constructed.

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