LARS needs a norm per layer, not one global norm. A weight tensor's norm is taken over all its entries, which is the Frobenius norm for a matrix.
Implement layer_norms(layers), returning each layer's weight norm.
Map the Euclidean norm over the list of layer arrays.
No results yet
Run your code to check it against the examples, or submit to run every test.