Is there any implementation of L2Loss

I recognized that L1Loss is located on torch.nn, but can not find L2Loss on the same module.

1 Like

I think you’re looking for mseloss

ELF uses nn.L2Loss, this L2Loss should use mseloss?
https://github.com/pytorch/ELF/blob/1b6859fa852056f835406a15c9eaa13817910add/src_py/rlpytorch/methods/q_learning.py#L80

I don’t know where that L2Loss comes from. What are you trying to do @sakaia?

Thank you for your commenting. I am looking around the ELF code and raised this question (since nn.L2Loss exist in PyTorch). It seems Q_learning class in the ELF is just a prototype (since this is not documented rlpytorch etc.)