Rotation of Tensor

Hi All
Most of the transforms in pytorch are on numpy arrays…
If i were to rotate a Tensor by X degree say 45 deg how would i do
Tensor size ( Bs,3,x,y)

RandomRotate function needs nummy array ,which mean i will have to loop through each image in a batch which will consume lot of time…