Skip to main content

ClikaRT::nn::Softplus

class

Header: ClikaRT/nn/generated/activation.h
Inherits: ClikaRT::nn::Module

Smooth ReLU: log(1 + exp(beta * input)) / beta, switching to the exact linear input where beta * input exceeds threshold. The module form of ClikaRT::ops::softplus, which documents the full contract (shapes, dtypes, errors); construct once, then call it like a function.

Member functions​

Softplus(SoftplusOptions)​

explicit Softplus(SoftplusOptions options = {})

Constructs the module from options (every default when omitted).

Declared in ClikaRT/nn/generated/activation.h, line 795

Softplus(double, double)​

explicit Softplus(double beta, double threshold = 20.0)

Softplus(beta, threshold): the positional form of SoftplusOptions(beta, threshold).

Declared in ClikaRT/nn/generated/activation.h, line 798

forward()​

Tensor forward(Tensor input) const

forward_impl, unwrapped: raises ClikaRT::Error on failure.

Declared in ClikaRT/nn/generated/activation.h, line 811

operator()()​

Tensor operator()(Tensor input) const

Same as forward.

Declared in ClikaRT/nn/generated/activation.h, line 815

options()​

const SoftplusOptions& options() const

The settings this module was constructed with.

Declared in ClikaRT/nn/generated/activation.h, line 819