floor

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

Compute the largest integer not greater than input.

\[\text{out} = \lfloor \text{input} \rfloor \]

Examples:

x = torch.tensor([0.9, 1.4, 1.9])
print(torch.floor(x))  # [0., 1., 1.]
Parameters:
Returns:

dragon.vm.torch.Tensor The output tensor.