ceil

dragon.vm.torch.ceil(
  input,
  out=None
)[source]

Compute the smallest integer not less than input.

\[\text{out} = \lceil \text{input} \rceil \]

Examples:

x = torch.tensor([1.4, 1.7, 2.0])
print(torch.ceil(x))  # [2., 2., 2.]
Parameters:
Returns:

dragon.vm.torch.Tensor – The output tensor.