(img: Tensor,
             size: BroadcastingList2[int],
             vertical_flip: bool=False)
return first_five + second_five
DEPRECATED
DEPRECATED
DEPRECATED
def ten_crop(img: Tensor,
             size: BroadcastingList2[int],
             vertical_flip: bool=False) -> List[Tensor]:
    """DEPRECATED
    """
    warnings.warn(
        "This method is deprecated and will be removed in future releases. "
        "Please, use ``F.ten_crop`` instead.")

    _assert_image_tensor(img)

    assert len(
        size) == 2, "Please provide only two dimensions (h, w) for size."
    first_five = five_crop(img, size)

    if vertical_flip:
        img = vflip(img)
    else:
        img = hflip(img)

    second_five = five_crop(img, size)

    return first_five + second_five
def ten_crop ( img : Tensor , size : BroadcastingList2 [ int ] , vertical_flip : bool = False ) -> List [ Tensor ] : warnings . warn ( "This method is deprecated and will be removed in future releases. " "Please, use ``F.ten_crop`` instead." ) _assert_image_tensor ( img ) assert len ( size ) == 2 , "Please provide only two dimensions (h, w) for size." first_five = five_crop ( img , size ) if vertical_flip : img = vflip ( img ) else : img = hflip ( img ) second_five = five_crop ( img , size ) return first_five + second_five