simple L_2-Loss
| 309 | return tensor |
| 310 | |
| 311 | class L2Loss(nn.Module): |
| 312 | """ |
| 313 | simple L_2-Loss |
| 314 | """ |
| 315 | def __init__(self): |
| 316 | super(L2Loss, self).__init__() |
| 317 | |
| 318 | def forward(self, input, target): |
| 319 | return torch.sqrt(torch.mean(torch.abs(input - target).pow(2))) |
| 320 | |
| 321 | def PoseLoss(args, pose_, pose, device): |
| 322 | loss_func = nn.MSELoss() |
nothing calls this directly
no outgoing calls
no test coverage detected