mlx.core.flip

目录

mlx.core.flip#

flip(a: array, /, axis: None | int | Sequence[int] = None, *, stream: None | Stream | Device = None) array#

Reverse the order of elements along the given axis.

参数:
  • a (array) -- Input array.

  • axis (int or tuple(int), optional) -- Axis or axes to flip over. Defaults to None in which case all axes are flipped.

返回:

The flipped array.

返回类型:

array