(self, pic)
return F.to_tensor(pic)
Args:
            pic (PIL Image or numpy.ndarray): Image to be converted to tensor.

        Returns:
            Tensor: Converted image.
Args:
            pic (PIL Image or numpy.ndarray): Image to be converted to tensor.
Args : pic ( PIL Image or numpy . ndarray ) : Image to be converted to tensor .
def __call__(self, pic):
        """
        Args:
            pic (PIL Image or numpy.ndarray): Image to be converted to tensor.

        Returns:
            Tensor: Converted image.
        """
        return F.to_tensor(pic)
def __call__ ( self , pic ) : return F . to_tensor ( pic )