Batch matrix-transpose — swap the last two axes only, leaving all leading batch axes intact. Backing function for the .mT tensor property and standard for batched matmul transposes.
Parameters
aTensorImplPtrInput tensor; must have
ndim >= 2.Returns
TensorImplPtrView of a with the final two axes swapped.
Raises
ValueErrorIf
a.ndim < 2.