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) -- 輸入陣列。

  • 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