ZerosΒΆ

Returns a tensor filled with the-scalar value 0, with the shape defined by the variable argument size.

Abstract Signature:

Zeros(size: int, dtype: DType, device: Device, requires_grad: bool = False)

PyTorch

API: torch.zeros
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.zeros
Strategy: Direct Mapping

NumPy

API: numpy.zeros
Strategy: Direct Mapping

Keras

API: keras.ops.zeros
Strategy: Direct Mapping

TensorFlow

API: tf.zeros
Strategy: Direct Mapping

Apple MLX

API: mlx.core.zeros
Strategy: Direct Mapping

Flax NNX

API: jax.numpy.zeros
Strategy: Direct Mapping

PaxML / Praxis

API: jax.numpy.zeros
Strategy: Direct Mapping