(self, img)
return F.rotate(img, angle, self.resample, self.expand, self.center,
                        fill)
Args:
            img (PIL Image or Tensor): Image to be rotated.

        Returns:
            PIL Image or Tensor: Rotated image.
Args:
            img (PIL Image or Tensor): Image to be rotated.
Args : img ( PIL Image or Tensor ) : Image to be rotated .
def forward(self, img):
        """
        Args:
            img (PIL Image or Tensor): Image to be rotated.

        Returns:
            PIL Image or Tensor: Rotated image.
        """
        fill = self.fill
        if isinstance(img, Tensor):
            if isinstance(fill, (int, float)):
                fill = [float(fill)] * F._get_image_num_channels(img)
            else:
                fill = [float(f) for f in fill]
        angle = self.get_params(self.degrees)

        return F.rotate(img, angle, self.resample, self.expand, self.center,
                        fill)
def forward ( self , img ) : fill = self . fill if isinstance ( img , Tensor ) : if isinstance ( fill , ( int , float ) ) : fill = [ float ( fill ) ] * F . _get_image_num_channels ( img ) else : fill = [ float ( f ) for f in fill ] angle = self . get_params ( self . degrees ) return F . rotate ( img , angle , self . resample , self . expand , self . center , fill )