mlx.core.zeros# zeros(shape: int | Sequence[int], dtype: Dtype | None = float32, *, stream: None | Stream | Device = None) → array# 构造一个全零数组。 参数: shape (int 或 list(int)) – 输出数组的形状。 dtype (Dtype, 可选) – 输出数组的数据类型。如果未指定,输出类型默认为 float32。 返回: 具有指定形状的全零数组。 返回类型: array (数组)