Yes, Thanks.
I did it by customizing the data-loader class.Something like this-
class customdataloader():
       def transform(self,image,mask):
             image = TF.rotate(image,90)
             mask = TF.rotate(mask,90)