pub fn segment_graph(
m: &Model,
convs: &[&Conv],
last: bool,
) -> (IntGraph, Vec<IId>)Expand description
A synthesis segment: one (possibly 3×3) conv followed by 1×1 convs.
Params: the first conv’s taps [cin][k][k] (replicate-padded gather),
then (if it is residual) its cin centre values; when last, then the
stab input channels. Outputs: the segment’s channels, or (when last)
the three 8-bit pixel values.