Glow's affine coupling layer splits the features in two. One half passes through unchanged and is used to compute a scale and shift for the other half. Because the first half is known, the transform can be inverted exactly.
Implement affine_coupling_forward(xa, xb, s, t), returning the unchanged half and the scaled and shifted half.
s is a log-scale, so the scale factor is exp(s).Keep xa as is, and compute xb * exp(s) + t.
No results yet
Run your code to check it against the examples, or submit to run every test.