
2D convolution over a (C, H, W) chunk.
g_conv2d.RdTorch-layout convolution for in-graph model inference: x is a
channels-first (C_in, H, W) array, w a (C_out, C_in/groups, kH, kW) kernel, bias an optional length-C_out vector. stride,
padding (symmetric), and dilation are scalars or length-2
(y, x). groups gives grouped/depthwise convolution. Weights and
bias are plain R arrays; traced they enter the kernel as constants
uploaded once at compile.