Skip to main content

Module pad

Module pad 

Source

Structsยง

GpuPad
Constant padding via two copy_nds: broadcast the pad value across the whole output, then drop the input into the interior. No dedicated kernel. Reflect/ Edge modes are left on the host (see GpuPad::from_core).