torch_clip {torch} | R Documentation |
Clip
Description
Clip
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()
.
[Package torch version 0.13.0 Index]