NanToNum ======== Replace NaN with zero and infinity with finite numbers. **Abstract Signature:** ``NanToNum(x: Tensor, copy: bool = True, nan: number = 0.0, posinf: number | None, neginf: number | None)`` .. raw:: html

PyTorch

API: torch.nan_to_num
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.nan_to_num
Strategy: Direct Mapping

NumPy

API: numpy.nan_to_num
Strategy: Direct Mapping

Keras

API: keras.ops.nan_to_num
Strategy: Direct Mapping

TensorFlow

API: tf.where
Strategy: Direct Mapping