Struct CELUOptions¶
Defined in File activation.h
Page Contents
Struct Documentation¶
-
struct CELUOptions¶
Options for the
CELU
module.Example:
CELU model(CELUOptions().alpha(42.42).inplace(true));
Public Functions
-
inline auto alpha(const double &new_alpha) -> decltype(*this)¶
The
alpha
value for the CELU formulation. Default: 1.0.
-
inline auto alpha(double &&new_alpha) -> decltype(*this)¶
-
inline const double &alpha() const noexcept¶
-
inline double &alpha() 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 alpha(const double &new_alpha) -> decltype(*this)¶