mlx.core.broadcast_arrays

mlx.core.broadcast_arrays#

broadcast_arrays(*arrays: array, stream: None | Stream | Device = None) Tuple[array, ...]#

Broadcast arrays against one another.

The broadcasting semantics are the same as Numpy.

參數:

*arrays (array) -- The input arrays.

回傳:

The output arrays with the broadcasted shape.

回傳型別:

tuple(array)