Skip to content
class

ConvNdOpts

ConvNdOpts

Compact parameter bag for N-D standard convolution.

Used by IBackend::conv_nd_forward and conv_nd_backward for N in {1, 2, 3}. The fixed-size arrays are indexed 0..N-1; any unused trailing entries are ignored by the implementation.

Attributes

Nint
Number of spatial dimensions (1, 2, or 3).
groupsint
Channel grouping factor; 1 means standard convolution and Cin means depthwise.
stride, pad, dilationint[3]
Per-spatial-dimension geometry (only the first N entries are meaningful).