Ceil
ceil(input, out=NULL) -> Tensor
Returns a new tensor with the ceil of the elements of input
,
the smallest integer greater than or equal to each element.
Examples
if (torch_is_installed()) {
a = torch_randn(c(4))
a
torch_ceil(a)
}
#> torch_tensor
#> -1
#> 1
#> 1
#> -1
#> [ CPUFloatType{4} ]