zeros_likeΒΆ

Returns a new array filled with zeros and having the same shape as an input array x.

Abstract Signature:

zeros_like(x: array, dtype: Optional[dtype], device: Optional[device])

JAX (Core)

API: optax.tree.zeros_like
Strategy: Direct Mapping

NumPy

API: numpy.ma.core.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

Flax NNX

API: optax.tree.zeros_like
Strategy: Direct Mapping