modeci_mdf.functions.onnx.shrink

modeci_mdf.functions.onnx.shrink(*args, **kwargs)

Shrink takes one input data (Tensor<numeric>) and produces one Tensor output, having same datatype and shape with input. It has two attributes, lambd and bias. The formula of this operator is: If x < -lambd, y = x + bias; If x > lambd, y = x - bias; Otherwise, y = 0.