ClikaRT::ops::softshrink
function
softshrink()
Soft thresholding: shrinks every element toward zero by lambd.
Parameters
x: the input tensor.lambd: the shrink amount (lambda). Default0.5.
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::softshrink(x, 0.1);
Declared in ClikaRT/compute/ops.h, line 1105