(self, img)
return F.center_crop(img, self.size)
Args:
            img (PIL Image or Tensor): Image to be cropped.

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

        Returns:
            PIL Image or Tensor: Cropped image.
        """
        return F.center_crop(img, self.size)
def forward ( self , img ) : return F . center_crop ( img , self . size )