Struct LeakyReLUOptions¶
Defined in File activation.h
Page Contents
Struct Documentation¶
-
struct LeakyReLUOptions¶
Options for the
LeakyReLU
module.Example:
LeakyReLU model(LeakyReLUOptions().negative_slope(0.42).inplace(true));
Public Functions
-
inline auto negative_slope(const double &new_negative_slope) -> decltype(*this)¶
Controls the angle of the negative slope. Default: 1e-2.
-
inline auto negative_slope(double &&new_negative_slope) -> decltype(*this)¶
-
inline const double &negative_slope() const noexcept¶
-
inline double &negative_slope() 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¶
-
inline auto negative_slope(const double &new_negative_slope) -> decltype(*this)¶