upscaleNearest

fun <T : DType, V> upscaleNearest(input: Tensor<T, V>, scale: Int, layout: Layout, ctx: ExecutionContext): Tensor<T, V>(source)

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