ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.keras.backend.round

TensorFlow 1 version View source on GitHub

Element-wise rounding to the closest integer.

In case of tie, the rounding mode used is "half to even".

x Tensor or variable.

A tensor.