Shortcuts

Struct RReLUOptions

Page Contents

Struct Documentation

struct RReLUOptions

Options for the RReLU module.

Example:

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

Public Functions

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

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

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

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

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

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

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