TensorFlow API TensorFlow v2.14.0 Python tf.math.floordiv View source on GitHub Divides x / y elementwise, rounding toward the most negative integer. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.floordiv, tf.compat.v1.math.floordiv tf.math.floordiv( x, y, name=None ) Mathematically, this is equivalent to floor(x / y). For example: floor(8.4 / 4.0) = floor(2.1) = 2.0 floor(-8.4 / 4.0) = floor(-2.1) = -3.0 This is equivalent to the '//' operator in Python 3.0 and above. Args x Tensor numerator of real numeric type. y Tensor denominator of real numeric type. name A name for the operation (optional). Returns x / y rounded toward -infinity. Raises TypeError If the inputs are complex.