Shortcuts

Struct RReLUOptions

Page Contents

Struct Documentation

struct torch::nn::RReLUOptions

Options for the RReLU module.

Example:

RReLU model(RReLUOptions().lower(0.24).upper(0.42).inplace(true));

Public Functions

auto lower(const double &new_lower) -> decltype(*this)

lower bound of the uniform distribution. Default: 1/8

auto lower(double &&new_lower) -> decltype(*this)
const double &lower() const noexcept
double &lower() noexcept
auto upper(const double &new_upper) -> decltype(*this)

upper bound of the uniform distribution. Default: 1/3

auto upper(double &&new_upper) -> decltype(*this)
const double &upper() const noexcept
double &upper() noexcept
auto inplace(const bool &new_inplace) -> decltype(*this)

can optionally do the operation in-place. Default: False

auto inplace(bool &&new_inplace) -> decltype(*this)
const bool &inplace() const noexcept
bool &inplace() 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