Rate this Page

Struct RReLUFuncOptions#

Page Contents

Struct Documentation#

struct RReLUFuncOptions#

Options for torch::nn::functional::rrelu.

Example:

namespace F = torch::nn::functional;
F::rrelu(x, F::RReLUFuncOptions().lower(0.1).upper(0.4).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 training(const bool &new_training) -> decltype(*this)#
inline auto training(bool &&new_training) -> decltype(*this)#
inline const bool &training() const noexcept#
inline bool &training() 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#