floor

dragon.math.floor(
  inputs,
  **kwargs
)[source]

Compute the largest integer not greater than input.

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

Examples:

x = dragon.constant([0.9, 1.4, 1.9])
print(dragon.math.floor(x))  # [0., 1., 1.]
Parameters:
Returns:

dragon.Tensor The output tensor.