upsample2d
abstract fun upsample2d(scale: Pair<Int, Int> = 2 to 2, mode: UpsampleMode = UpsampleMode.Nearest, alignCorners: Boolean = false, id: String = "")(source)
Creates a 2D upsampling layer for increasing spatial resolution.
Parameters
scale
Upsampling factors for height and width
mode
Interpolation mode (nearest default)
alignCorners
Alignment flag for bilinear mode (ignored for nearest)
id
Optional identifier for the layer
Creates a 2D upsampling layer with parameters configured in the DSL block.