Shortcuts

Struct PixelShuffleOptions

Page Contents

Struct Documentation

struct torch::nn::PixelShuffleOptions

Options for the PixelShuffle module.

Example:

PixelShuffle model(PixelShuffleOptions(5));

Public Functions

PixelShuffleOptions(int64_t upscale_factor)
auto upscale_factor(const int64_t &new_upscale_factor) -> decltype(*this)

Factor to increase spatial resolution by.

auto upscale_factor(int64_t &&new_upscale_factor) -> decltype(*this)
const int64_t &upscale_factor() const noexcept
int64_t &upscale_factor() 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