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.