ZerosLikeΒΆ

Create an array full of zeros with the same shape and dtype as an array.

Abstract Signature:

ZerosLike(a: Tensor, dtype, shape, device, out_sharding)

PyTorch

API: torch.zeros_like
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.zeros_like
Strategy: Direct Mapping

NumPy

API: numpy.zeros_like
Strategy: Direct Mapping

Keras

API: keras.ops.zeros_like
Strategy: Direct Mapping

TensorFlow

API: tf.zeros_like
Strategy: Direct Mapping

Apple MLX

API: mlx.core.zeros_like
Strategy: Direct Mapping