(self, val, n=1)
| 21 | self.count = 0 |
| 22 | |
| 23 | def update(self, val, n=1): |
| 24 | self.val = val |
| 25 | self.sum += val * n |
| 26 | self.count += n |
| 27 | self.avg = self.sum / self.count |
| 28 | |
| 29 | |
| 30 | def train_one_epoch(model: torch.nn.Module, criterion: torch.nn.Module, |
no outgoing calls
no test coverage detected