mlx.core.matrix_transpose

mlx.core.matrix_transpose#

matrix_transpose(a: array, /, *, stream: StreamOrDevice = None) → array#

Transpose the last two dimensions of the array.