Skip to content

Commit

Permalink
Merge pull request #73 from JonasHell/main
Browse files Browse the repository at this point in the history
fix typo/bug in validation logging
  • Loading branch information
constantinpape committed Jul 12, 2022
2 parents aa8a1ea + 5fdbc1a commit 651a830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_em/trainer/default_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,5 +544,5 @@ def _validate_impl(self, forward_context):
metric_val /= len(self.val_loader)
loss_val /= len(self.val_loader)
if self.logger is not None:
self.logger.log_validation(self._iteration, metric, loss, x, y, pred)
self.logger.log_validation(self._iteration, metric_val, loss_val, x, y, pred)
return metric_val

0 comments on commit 651a830

Please sign in to comment.