MatrixTransposeΒΆ

Transpose the last two dimensions of an array.

Abstract Signature:

MatrixTranspose(x: Tensor)

PyTorch

API: torch.transpose
Strategy: Macro 'torch.transpose({x}, -2, -1)'

JAX (Core)

API: jax.numpy.matrix_transpose
Strategy: Direct Mapping

NumPy

API: numpy.matrix_transpose
Strategy: Direct Mapping

Keras

API: keras.ops.transpose
Strategy: Direct Mapping

TensorFlow

API: tf.linalg.matrix_transpose
Strategy: Direct Mapping