mlx.core.zeros_like#

mlx.core.zeros_like(a: array, /, *, stream: Union[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