Shortcuts

Struct CrossMapLRN2dOptions

Page Contents

Struct Documentation

struct torch::nn::CrossMapLRN2dOptions

Options for the CrossMapLRN2d module.

Example:

CrossMapLRN2d model(CrossMapLRN2dOptions(3).alpha(1e-5).beta(0.1).k(10));

Public Functions

CrossMapLRN2dOptions(int64_t size)
auto size(const int64_t &new_size) -> decltype(*this)
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)
auto alpha(double &&new_alpha) -> decltype(*this)
const double &alpha() const noexcept
double &alpha() noexcept
auto beta(const double &new_beta) -> decltype(*this)
auto beta(double &&new_beta) -> decltype(*this)
const double &beta() const noexcept
double &beta() noexcept
auto k(const int64_t &new_k) -> decltype(*this)
auto k(int64_t &&new_k) -> decltype(*this)
const int64_t &k() const noexcept
int64_t &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