(self, img)
return F.pad(img, self.padding, self.fill, self.padding_mode)
Args:
            img (PIL Image or Tensor): Image to be padded.

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

        Returns:
            PIL Image or Tensor: Padded image.
        """
        return F.pad(img, self.padding, self.fill, self.padding_mode)
def forward ( self , img ) : return F . pad ( img , self . padding , self . fill , self . padding_mode )