Hi,
There is no built-in function/transformation available in Pytorch for Random Transpose. But you can build a custom data loader and call transpose on image tensor randomly. Something like this 3. In __getitem__ function you have to set a flag true/false randomly and on the basis of that flag you can apply your Transpose transformation.