Transposition is free for gemm calls, because BLAS libraries (that implement general matrix multiply (gemm)) support both row major and column major matrices, and transpositions.
So it’s okay to have that transpose call, it’s practically a free operation.