Adding L1/L2 regularization in PyTorch? : <p>Is there any way, I can add simple L1/L2 regularization in PyTorch? We can probably compute the regularized loss by simply adding the <code>data_loss</code> with the <code>reg_loss</code> but is there any explicit way, any support from PyTorch library to do it more easily without doing it manually?</p>
