Shortcuts

Template Struct FractionalMaxPoolOptions

Page Contents

Struct Documentation

template<size_t D>
struct FractionalMaxPoolOptions

Options for a D-dimensional fractional maxpool module.

Public Functions

inline FractionalMaxPoolOptions(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 output_size(const std::optional<ExpandingArray<D>> &new_output_size) -> decltype(*this)

the target output size of the image

inline auto output_size(std::optional<ExpandingArray<D>> &&new_output_size) -> decltype(*this)
inline const std::optional<ExpandingArray<D>> &output_size() const noexcept
inline std::optional<ExpandingArray<D>> &output_size() noexcept
inline auto output_ratio(const std::optional<ExpandingArrayDouble> &new_output_ratio) -> decltype(*this)
inline auto output_ratio(std::optional<ExpandingArrayDouble> &&new_output_ratio) -> decltype(*this)
inline const std::optional<ExpandingArrayDouble> &output_ratio() const noexcept
inline std::optional<ExpandingArrayDouble> &output_ratio() noexcept
inline auto _random_samples(const torch::Tensor &new__random_samples) -> decltype(*this)
inline auto _random_samples(torch::Tensor &&new__random_samples) -> decltype(*this)
inline const torch::Tensor &_random_samples() const noexcept
inline torch::Tensor &_random_samples() 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