Template Class LPPoolImpl¶
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 LPPoolImpl : public torch::nn::Cloneable<Derived>¶ Base class for all (dimension-specialized) lppool modules.
Public Functions
-
inline LPPoolImpl(double norm_type, ExpandingArray<D> kernel_size)¶
-
explicit LPPoolImpl(const LPPoolOptions<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
LPPool{1,2}d
module into the givenstream
.
Public Members
-
LPPoolOptions<D> options¶
-
inline LPPoolImpl(double norm_type, ExpandingArray<D> kernel_size)¶