(self, img)
return F.resized_crop(img, i, j, h, w, self.size, self.interpolation)
Args:
            img (PIL Image or Tensor): Image to be cropped and resized.

        Returns:
            PIL Image or Tensor: Randomly cropped and resized image.
Args:
            img (PIL Image or Tensor): Image to be cropped and resized.
Args : img ( PIL Image or Tensor ) : Image to be cropped and resized .
def forward(self, img):
        """
        Args:
            img (PIL Image or Tensor): Image to be cropped and resized.

        Returns:
            PIL Image or Tensor: Randomly cropped and resized image.
        """
        i, j, h, w = self.get_params(img, self.scale, self.ratio)
        return F.resized_crop(img, i, j, h, w, self.size, self.interpolation)
def forward ( self , img ) : i , j , h , w = self . get_params ( img , self . scale , self . ratio ) return F . resized_crop ( img , i , j , h , w , self . size , self . interpolation )