(img)
return F_t.hflip(img)
Horizontally flip the given image.
    Args:
        img (PIL Image or Tensor): Image to be flipped. If img
            is a Tensor, it is expected to be in [..., H, W] format,
            where ... means it can have an arbitrary number of leading
            dimensions.
    Returns:
        PIL Image or Tensor:  Horizontally flipped image.
Horizontally flip the given image.
    Args:
        img (PIL Image or Tensor): Image to be flipped. If img
            is a Tensor, it is expected to be in [..., H, W] format,
            where ... means it can have an arbitrary number of leading
            dimensions.
    Returns:
        PIL Image or Tensor:  Horizontally flipped image.
Horizontally flip the given image . Args : img ( PIL Image or Tensor ) : Image to be flipped . If img is a Tensor it is expected to be in [ ... H W ] format where ... means it can have an arbitrary number of leading dimensions . Returns : PIL Image or Tensor : Horizontally flipped image .
def hflip(img):
    """Horizontally flip the given image.
    Args:
        img (PIL Image or Tensor): Image to be flipped. If img
            is a Tensor, it is expected to be in [..., H, W] format,
            where ... means it can have an arbitrary number of leading
            dimensions.
    Returns:
        PIL Image or Tensor:  Horizontally flipped image.
    """
    if not isinstance(img, paddle.Tensor):
        return F_pil.hflip(img)

    return F_t.hflip(img)
def hflip ( img ) : if not isinstance ( img , paddle . Tensor ) : return F_pil . hflip ( img ) return F_t . hflip ( img )