(network_output, gt)
| 40 | return torch.abs((network_output - gt)).mean() |
| 41 | |
| 42 | def l2_loss(network_output, gt): |
| 43 | return ((network_output - gt) ** 2).mean() |
| 44 | |
| 45 | def gaussian(window_size, sigma): |
| 46 | 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