Hello,

can you help me to find the regularization loss implementation in Pytorch source code ?

Thank you very much !

Hello,

can you help me to find the regularization loss implementation in Pytorch source code ?

Thank you very much !

The parameter: weight_decay in optim modules control the regularization.

For example the code in SGD

1 Like

Thank you very much. In fact, I also want to find where the regularization loss is calculated ? can you help me?