Shortcuts

Template Struct FractionalMaxPoolOptions

Page Contents

Struct Documentation

template<size_t D>
struct torch::nn::FractionalMaxPoolOptions

Options for a D-dimensional fractional maxpool module.

Public Functions

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

the size of the window to take a max over

auto kernel_size(ExpandingArray<D> &&new_kernel_size) -> decltype(*this)
const ExpandingArray<D> &kernel_size() const noexcept
ExpandingArray<D> &kernel_size() noexcept
auto output_size(const c10::optional<ExpandingArray<D>> &new_output_size) -> decltype(*this)

the target output size of the image

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