Template Class MaxPoolImpl¶
Defined in File pooling.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::nn::Cloneable< Derived >
(Template Class Cloneable)
Class Documentation¶
-
template<size_t D, typename Derived>
class MaxPoolImpl : public torch::nn::Cloneable<Derived>¶ Base class for all (dimension-specialized) maxpool modules.
Public Functions
-
inline MaxPoolImpl(ExpandingArray<D> kernel_size)¶
-
explicit MaxPoolImpl(const MaxPoolOptions<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
MaxPool{1,2,3}d
module into the givenstream
.
Public Members
-
MaxPoolOptions<D> options¶
The options with which this
Module
was constructed.
-
inline MaxPoolImpl(ExpandingArray<D> kernel_size)¶