UpsamplingNearest2d
class torch.nn.UpsamplingNearest2d(size=None, scale_factor=None)
Applies a 2D nearest neighbor upsampling to an input signal
   composed of several input channels.
To specify the scale, it takes either the "size" or the
   "scale_factor" as it's constructor argument.
When "size" is given, it is the output size of the image (h, w).
Parameters:
      * size (int or Tuple[int, int],
        optional) -- output spatial sizes
  * **scale_factor** (*float** or **Tuple**[**float**,
    **float**]**, **optional*) -- multiplier for spatial size.

Warning:
 This class is deprecated in favor of "interpolate()".

Shape:
      * Input: (N, C, H_{in}, W_{in})
  * Output: (N, C, H_{out}, W_{out}) where

  H_{out} = \left\lfloor H_{in} \times \text{scale\_factor}
  \right\rfloor

  W_{out} = \left\lfloor W_{in} \times \text{scale\_factor}
  \right\rfloor

Examples: