TransposeCopyΒΆ

Alias for Transpose. Returns a fresh copy of transposed tensor.

Abstract Signature:

TransposeCopy(input: Tensor, dim0: int, dim1: int)

PyTorch

API: torch.transpose_copy
Strategy: Direct Mapping

JAX (Core)

API: jnp.swapaxes
Strategy: Direct Mapping

NumPy

API: np.swapaxes
Strategy: Macro 'np.swapaxes({input}, {dim0}, {dim1}).copy()'