Struct PReLUOptions

Page Contents

Struct Documentation

struct PReLUOptions

Options for the PReLU module.


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


Access comprehensive developer documentation for PyTorch

View Docs


Get in-depth tutorials for beginners and advanced developers

View Tutorials


Find development resources and get your questions answered

View Resources