Template Class AdaptiveAvgPoolImpl¶
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 output_size_t, typename Derived>
class AdaptiveAvgPoolImpl : public torch::nn::Cloneable<Derived>¶ Base class for all (dimension-specialized) adaptive avgpool modules.
Public Functions
-
inline AdaptiveAvgPoolImpl(output_size_t output_size)¶
-
inline explicit AdaptiveAvgPoolImpl(const AdaptiveAvgPoolOptions<output_size_t> &options_)¶
-
inline virtual void reset() override¶
reset()
must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules.
-
inline virtual void pretty_print(std::ostream &stream) const override¶
Pretty prints the
AdaptiveAvgPool{1,2,3}d
module into the givenstream
.
Public Members
-
AdaptiveAvgPoolOptions<output_size_t> options¶
The options with which this
Module
was constructed.
-
inline AdaptiveAvgPoolImpl(output_size_t output_size)¶