floor

dragon.vm.tensorflow.math.floor(
  x,
  name=None
)[source]

Compute the largest integer not greater than input.

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

Examples:

x = tf.constant([0.9, 1.4, 1.9])
print(tf.math.floor(x))  # [0., 1., 1.]
Parameters:
  • x (dragon.Tensor) – The input tensor.
  • name (str, optional) – The operation name.
Returns:

dragon.Tensor – The output tensor.