(network_output, gt)
| 19 | return torch.abs((network_output - gt)).mean() |
| 20 | |
| 21 | def l2_loss(network_output, gt): |
| 22 | return ((network_output - gt) ** 2).mean() |
| 23 | |
| 24 | def gaussian(window_size, sigma): |
| 25 | gauss = torch.Tensor([exp(-(x - window_size // 2) ** 2 / float(2 * sigma ** 2)) for x in range(window_size)]) |
nothing calls this directly
no outgoing calls
no test coverage detected