Shortcuts

Struct LocalResponseNormOptions

Page Contents

Struct Documentation

struct torch::nn::LocalResponseNormOptions

Options for the LocalResponseNorm module.

Example:

LocalResponseNorm model(LocalResponseNormOptions(2).alpha(0.0002).beta(0.85).k(2.));

Public Functions

LocalResponseNormOptions(int64_t size)
auto size(const int64_t &new_size) -> decltype(*this)

amount of neighbouring channels used for normalization

auto size(int64_t &&new_size) -> decltype(*this)
const int64_t &size() const noexcept
int64_t &size() noexcept
auto alpha(const double &new_alpha) -> decltype(*this)

multiplicative factor. Default: 1e-4

auto alpha(double &&new_alpha) -> decltype(*this)
const double &alpha() const noexcept
double &alpha() noexcept
auto beta(const double &new_beta) -> decltype(*this)

exponent. Default: 0.75

auto beta(double &&new_beta) -> decltype(*this)
const double &beta() const noexcept
double &beta() noexcept
auto k(const double &new_k) -> decltype(*this)

additive factor. Default: 1

auto k(double &&new_k) -> decltype(*this)
const double &k() const noexcept
double &k() 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