Closed suragnair closed 4 months ago
Cool fix! Any comments on the failed tests?
trainer.validate(model=self, dataloaders=val_dataloader)
being called before starting trainingtrainer.validate
step, and then it is not possible to update them without torch.inference_mode()
context
Reset val_losses, val_metrics, test_losses, test_metrics at the end of val/test set so that it does not carry forward to subsequent epochs, as this will not reflect the loss in the latest epoch.