Hi, does simple L2 / L1 regularization exist in pyTorch? I did not see anything like that in the losses.
I guess the way we could do it is simply have the data_loss + reg_loss computed, (I guess using nn.MSEloss for the L2), but is an explicit way we can use it without doing it this way?
Thanks