A weight-normalized layer is an ordinary linear layer whose weight matrix is built from g and v. Using it as a drop-in replacement shows the reparameterization is just a change of variables.
Implement weight_norm_linear(x, v, g, b), which builds W with weight normalization and returns x W^T + b.
(N, out).Build W the same way as weight_norm, then apply the affine map.
No results yet
Run your code to check it against the examples, or submit to run every test.