Rate this Page

Struct PReLUOptions#

Page Contents

Struct Documentation#

struct PReLUOptions#

Options for the PReLU module.

Example:

PReLU model(PReLUOptions().num_parameters(42));

Public Functions

inline auto num_parameters(const int64_t &new_num_parameters) -> decltype(*this)#

number of a to learn.

Although it takes an int as input, there is only two values are legitimate: 1, or the number of channels at input. Default: 1

inline auto num_parameters(int64_t &&new_num_parameters) -> decltype(*this)#
inline const int64_t &num_parameters() const noexcept#
inline int64_t &num_parameters() noexcept#
inline auto init(const double &new_init) -> decltype(*this)#

the initial value of a. Default: 0.25

inline auto init(double &&new_init) -> decltype(*this)#
inline const double &init() const noexcept#
inline double &init() noexcept#