Shortcuts

Template Struct MaxUnpoolFuncOptions

Page Contents

Struct Documentation

template<size_t D>
struct MaxUnpoolFuncOptions

Options for a D-dimensional maxunpool functional.

Public Functions

inline MaxUnpoolFuncOptions(ExpandingArray<D> kernel_size)
inline auto kernel_size(const ExpandingArray<D> &new_kernel_size) -> decltype(*this)

the size of the window to take a max over

inline auto kernel_size(ExpandingArray<D> &&new_kernel_size) -> decltype(*this)
inline const ExpandingArray<D> &kernel_size() const noexcept
inline ExpandingArray<D> &kernel_size() noexcept
inline auto stride(const ExpandingArray<D> &new_stride) -> decltype(*this)

the stride of the window. Default value is `kernel_size

inline auto stride(ExpandingArray<D> &&new_stride) -> decltype(*this)
inline const ExpandingArray<D> &stride() const noexcept
inline ExpandingArray<D> &stride() noexcept
inline auto padding(const ExpandingArray<D> &new_padding) -> decltype(*this)

implicit zero padding to be added on both sides

inline auto padding(ExpandingArray<D> &&new_padding) -> decltype(*this)
inline const ExpandingArray<D> &padding() const noexcept
inline ExpandingArray<D> &padding() noexcept
inline auto output_size(const std::optional<std::vector<int64_t>> &new_output_size) -> decltype(*this)

the targeted output size

inline auto output_size(std::optional<std::vector<int64_t>> &&new_output_size) -> decltype(*this)
inline const std::optional<std::vector<int64_t>> &output_size() const noexcept
inline std::optional<std::vector<int64_t>> &output_size() noexcept

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