ClikaRT::ops::softplus
function
softplus()
Smooth ReLU.
For numerical stability the exact linear x is returned where beta * x > threshold.
Parameters
x: the input tensor.beta: the sharpness; larger approaches ReLU. Default1.0.threshold: the linear-fallback switch point onbeta * x. Default20.0.
Throws
ClikaRT::Error: when the input's dtype is not served for this operation (the machine-readable reason ridescode_name()).
Returns: a new tensor, same shape and dtype as x.
auto y = ClikaRT::ops::softplus(x);
Declared in ClikaRT/compute/ops.h, line 1088