ClikaRT::ops::hardshrink
function
hardshrink()
Hard shrinkage: zeroes every element within [-lambd, lambd].
Parameters
x: the input tensor.lambd: the shrink threshold (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::hardshrink(x, 0.1);
Declared in ClikaRT/compute/ops.h, line 823