(self)
| 36 | return self.forward(batch) |
| 37 | |
| 38 | def on_train_epoch_end(self): |
| 39 | # Log steps and losses |
| 40 | dico = self.step_log_dict() |
| 41 | # Log losses |
| 42 | dico.update(self.loss_log_dict('train')) |
| 43 | # Write to log only if not sanity check |
| 44 | if not self.trainer.sanity_checking: |
| 45 | self.log_dict(dico, sync_dist=True, rank_zero_only=True) |
| 46 | |
| 47 | def on_validation_epoch_end(self): |
| 48 | # Log steps and losses |
nothing calls this directly
no test coverage detected