Clamp all elements in x into the range min, max and return a resulting tensor.
tch_clamp(x, min, max)
x | tensor object |
---|---|
min | lower-bound of the range to be clamped to |
max | upper-bound of the range to be clamped to |
#> tensor #> 5 #> 5 #> 5 #> 5 #> 5 #> 6 #> 7 #> 7 #> 7 #> 7 #> [ Variable[CPUIntType]{10} ]