mindspore.Tensor.mT

property Tensor.mT

Returns the Tensor that exchanges the last two dimensions. Accessing the attribute, x.mT, is equal to calling the method, x.swapaxes(-2, -1). For details, please refer to mindspore.Tensor.swapaxes().