triton.experimental.gluon.language.clamp
- triton.experimental.gluon.language.clamp(x, min, max, propagate_nan: constexpr = <PROPAGATE_NAN.NONE: 0>, _semantic=None)
Clamps the input tensor
xwithin the range [min, max]. Behavior whenmin>maxis undefined.- Parameters:
x (Block) – the input tensor
min (Block) – the lower bound for clamping
max (Block) – the upper bound for clamping
propagate_nan (tl.PropagateNan) – whether to propagate NaN values. Applies only to the
xtensor. If eitherminormaxis NaN, the result is undefined.
See also
tl.PropagateNan