tf.floor(x, name=None)

tf.floor(x, name=None)

See the guide: Math > Basic Math Functions

Returns element-wise largest integer not greater than x.


  • x: A Tensor. Must be one of the following types: half, float32, float64.
  • name: A name for the operation (optional).


A Tensor. Has the same type as x.

Defined in tensorflow/python/ops/