Usage
torch_clip(self, min = NULL, max = NULL)
Arguments
- self
(Tensor) the input tensor.
- min
(Number) lower-bound of the range to be clamped to
- max
(Number) upper-bound of the range to be clamped to
clip(input, min, max, *, out=None) -> Tensor
Alias for torch_clamp()
.