mlx.core.zeros_like

Contents

mlx.core.zeros_like#

zeros_like(a: array, /, *, stream: None | Stream | Device = None) array#

An array of zeros like the input.

Parameters:

a (array) – The input to take the shape and type from.

Returns:

The output array filled with zeros.

Return type:

array