PermuteΒΆ

Returns a view of the original tensor input with its dimensions permuted.

Abstract Signature:

Permute(input: Tensor, dims: List[int])

PyTorch

API: torch.permute
Strategy: Macro 'lambda x: x.permute(dims)'

JAX (Core)

API: jax.numpy.transpose
Strategy: Direct Mapping

NumPy

API: numpy.transpose
Strategy: Direct Mapping

Keras

API: keras.ops.transpose
Strategy: Direct Mapping

TensorFlow

API: tf.transpose
Strategy: Direct Mapping

Apple MLX

API: mlx.core.transpose
Strategy: Direct Mapping

Flax NNX

API: jax.numpy.transpose
Strategy: Direct Mapping

PaxML / Praxis

API: jax.numpy.transpose
Strategy: Direct Mapping