RoundΒΆ

Rounds elements to the nearest integer.

Abstract Signature:

Round(input: Tensor, decimals: int = 0)

PyTorch

API: torch.round
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.round
Strategy: Direct Mapping

NumPy

API: numpy.round
Strategy: Direct Mapping

Keras

API: keras.ops.round
Strategy: Direct Mapping

TensorFlow

API: tf.math.round
Strategy: Direct Mapping

Apple MLX

API: mlx.core.round
Strategy: Direct Mapping

Flax NNX

API: jax.numpy.round
Strategy: Direct Mapping

PaxML / Praxis

API: jax.numpy.round
Strategy: Direct Mapping