mlx.core.transpose

目录

mlx.core.transpose#

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

Transpose the dimensions of the array.

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

  • axes (list(int), optional) -- Specifies the source axis for each axis in the new array. The default is to reverse the axes.

返回:

The transposed array.

返回类型:

array