(img: Tensor, size: BroadcastingList2[int])
return [tl, tr, bl, br, center]
DEPRECATED
DEPRECATED
DEPRECATED
def five_crop(img: Tensor, size: BroadcastingList2[int]) -> List[Tensor]:
    """DEPRECATED
    """
    warnings.warn(
        "This method is deprecated and will be removed in future releases. "
        "Please, use ``F.five_crop`` instead.")

    _assert_image_tensor(img)

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

    _, image_width, image_height = img.size()
    crop_height, crop_width = size
    if crop_width > image_width or crop_height > image_height:
        msg = "Requested crop size {} is bigger than input size {}"
        raise ValueError(msg.format(size, (image_height, image_width)))

    tl = crop(img, 0, 0, crop_width, crop_height)
    tr = crop(img, image_width - crop_width, 0, image_width, crop_height)
    bl = crop(img, 0, image_height - crop_height, crop_width, image_height)
    br = crop(img, image_width - crop_width, image_height - crop_height,
              image_width, image_height)
    center = center_crop(img, (crop_height, crop_width))

    return [tl, tr, bl, br, center]
def five_crop ( img : Tensor , size : BroadcastingList2 [ int ] ) -> List [ Tensor ] : warnings . warn ( "This method is deprecated and will be removed in future releases. " "Please, use ``F.five_crop`` instead." ) _assert_image_tensor ( img ) assert len ( size ) == 2 , "Please provide only two dimensions (h, w) for size." _ , image_width , image_height = img . size ( ) crop_height , crop_width = size if crop_width > image_width or crop_height > image_height : msg = "Requested crop size {} is bigger than input size {}" raise ValueError ( msg . format ( size , ( image_height , image_width ) ) ) tl = crop ( img , 0 , 0 , crop_width , crop_height ) tr = crop ( img , image_width - crop_width , 0 , image_width , crop_height ) bl = crop ( img , 0 , image_height - crop_height , crop_width , image_height ) br = crop ( img , image_width - crop_width , image_height - crop_height , image_width , image_height ) center = center_crop ( img , ( crop_height , crop_width ) ) return [ tl , tr , bl , br , center ]