Skip to content
class

ConvTransposeNdOpts

ConvTransposeNdOpts

Compact parameter bag for N-D transposed convolution.

Mirrors ConvNdOpts and adds opad. A transposed convolution is the data gradient of a forward convolution, so stride / pad / dilation / groups describe that forward convolution — the one whose input this op reconstructs — and opad picks one output extent out of the stride candidates an integer-dividing stride leaves ambiguous.

Attributes

Nint
Number of spatial dimensions (1, 2, or 3).
groupsint
Channel grouping factor; 1 is the dense case and Cin is depthwise. Unlike ConvNdOpts, the divided axis of the weight is the second one: (Cin, Cout / groups, K...).
stride, pad, dilation, opadint[3]
Per-spatial-dimension geometry (only the first N entries are meaningful).