mlx.core.moveaxis

目录

mlx.core.moveaxis#

moveaxis(a: array, /, source: int, destination: int, *, stream: None | Stream | Device = None) array#

Move an axis to a new position.

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

  • source (int) -- Specifies the source axis.

  • destination (int) -- Specifies the destination axis.

返回:

The array with the axis moved.

返回类型:

array