Generic nearest-neighbor upscale supporting common image tensor layouts. Supported layouts: HW, CHW, HWC, NHWC, NCHW.