Shortcuts

Struct LocalResponseNormOptions

Page Contents

Struct Documentation

struct LocalResponseNormOptions

Options for the LocalResponseNorm module.

Example:

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

Public Functions

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

amount of neighbouring channels used for normalization

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

multiplicative factor. Default: 1e-4

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

exponent. Default: 0.75

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

additive factor. Default: 1

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