(self, gradient_L1=True)
| 352 | """ |
| 353 | |
| 354 | def __init__(self, gradient_L1=True): |
| 355 | super(LossBasic, self).__init__() |
| 356 | self.l1_loss = nn.L1Loss() |
| 357 | self.l2_loss = nn.MSELoss() |
| 358 | self.gradient = TensorGradient(gradient_L1) |
| 359 | |
| 360 | def forward(self, pred, ground_truth): |
| 361 | return self.l2_loss(pred, ground_truth) + \ |
nothing calls this directly
no test coverage detected