Clamps every element of operand to the range [min_val, max_val],
i.e. max(min_val, min(operand, max_val)).
Value
tensorish
Has the same data type and shape as operand.
It is ambiguous if the input is ambiguous.
StableHLO
Lowers to stablehlo::hlo_clamp().