Parameters:
      * input (Tensor) -- the input tensor
  * **size** (*int** or **Tuple**[**int**] or **Tuple**[**int**,
    **int**] or **Tuple**[**int**, **int**, **int**]*) -- output
    spatial size.

  * **scale_factor** (*float** or **Tuple**[**float**]*) --
    multiplier for spatial size. Has to match input size if it is
    a tuple.

  * **mode** (*str*) -- algorithm used for upsampling: "'nearest'"
    | "'linear'" | "'bilinear'" | "'bicubic'" | "'trilinear'".
    Default: "'nearest'"

  * **align_corners** (*bool**, **optional*) -- Geometrically, we
    consider the pixels of the input and output as squares rather
    than points. If set to "True", the input and output tensors
    are aligned by the center points of their corner pixels,
    preserving the values at the corner pixels. If set to "False",
    the input and output tensors are aligned by the corner points
