ClikaRT::nn::Softshrink
class
Header: ClikaRT/nn/generated/activation.h
Inherits: ClikaRT::nn::Module
Soft thresholding: moves every element toward zero by lambd, to zero within [-lambd, lambd]. The module form of ClikaRT::ops::softshrink, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.
Member functions
Softshrink(SoftshrinkOptions)
explicit Softshrink(SoftshrinkOptions options = {})
Constructs the module from options (every default when omitted).
Declared in ClikaRT/nn/generated/activation.h, line 731
Softshrink(double)
explicit Softshrink(double lambd)
Softshrink(lambd): the positional form of SoftshrinkOptions(lambd).
Declared in ClikaRT/nn/generated/activation.h, line 734
forward()
forward_impl, unwrapped: raises ClikaRT::Error on failure.
Declared in ClikaRT/nn/generated/activation.h, line 745
operator()()
Same as forward.
Declared in ClikaRT/nn/generated/activation.h, line 749
options()
const SoftshrinkOptions& options() const
The settings this module was constructed with.
Declared in ClikaRT/nn/generated/activation.h, line 753