Glow (Kingma & Dhariwal, 2018) is a normalizing flow: an invertible chain of transformations from data to a simple base distribution. Activation normalization is the first step, a per-channel affine map whose parameters are initialized from data.
Implement actnorm_forward(x, scale, bias), returning (x + bias) * scale per channel.
Add the bias, then multiply by the scale; NumPy broadcasts over the channel axis.
No results yet
Run your code to check it against the examples, or submit to run every test.