Rate this Page

Struct HardshrinkOptions#

Page Contents

Struct Documentation#

struct HardshrinkOptions#

Options for the Hardshrink module.

Example:

Hardshrink model(HardshrinkOptions().lambda(42.42));

Public Functions

HardshrinkOptions(double lambda = 0.5)#
inline auto lambda(const double &new_lambda) -> decltype(*this)#

the lambda value for the Hardshrink formulation. Default: 0.5

inline auto lambda(double &&new_lambda) -> decltype(*this)#
inline const double &lambda() const noexcept#
inline double &lambda() noexcept#