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