title: How to take a transpose for each matrix in a batch in Pytorch?
body: <p>Say I have a 4 batch of 5x3 matrixes. So the dimensions of these tensor are 4x5x3. How do I take the transpose of each matrix within each batch. So converting it to 4x3x5?</p>