tf.keras.backend.round

tf.keras.backend.round(x)

Defined in tensorflow/python/keras/backend.py.

Element-wise rounding to the closest integer.

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

Arguments:

  • x: Tensor or variable.

Returns:

A tensor.