tensor.clip
Clip operator limits the given input within an interval.
Args
self
(@Tensor<T>
) - Input tensor whose elements to be clipped.min
(Option<T>
) - Minimum value, under which element is replaced by min.max
(Option<T>
) - Maximum value, above which element is replaced by max.
Returns
Output Tensor<T>
with clipped input elements.
Example
Last updated