Template Class AdaptiveMaxPoolImpl

Inheritance Relationships

Base Type

Class Documentation

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

Base class for all (dimension-specialized) adaptive maxpool modules.

Public Functions

AdaptiveMaxPoolImpl(output_size_t output_size)
AdaptiveMaxPoolImpl(const AdaptiveMaxPoolOptions<output_size_t> &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 AdaptiveMaxPool{1,2,3}d module into the given stream.

Public Members

AdaptiveMaxPoolOptions<output_size_t> options

The options with which this Module was constructed.


Access comprehensive developer documentation for PyTorch

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources