Clamp all elements in x into the range min, Inf and return a resulting tensor.

tch_clamp_min(x, min)

Arguments

x

tensor object

min

lower-bound of the range to be clamped to

Examples

x <- tensor(1:10) tch_clamp_min(x, 5)
#> tensor #> 5 #> 5 #> 5 #> 5 #> 5 #> 6 #> 7 #> 8 #> 9 #> 10 #> [ Variable[CPUIntType]{10} ]