Hello!
I am trying to create a compound loss function where the first part is MSELoss and the second part is the L1-norm regularization of the model’s parameters
The fest part is simple
MSEloss = nn.MSELoss()
loss = MSEloss(rec_x, x)
But how to attach the second part?
I appreciate your help!