Hi @ptrblck
Here you have shown how to apply l1 regularization on a single layer, using torch.norm(model[0].weight, p=1).
What if I have, say 10 layers and want to apply l1 regularization on all of them. Can I do it in a one-shot, or do I need to iterate over each layer using model.parameters()?