This only affects transpose of non-square Tensors, that as far as I know are never used in the code. (cherry picked from commit ec5e599c)