Skip to content

Commit

Permalink
[Fix] Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
fanqiNO1 committed Mar 5, 2024
1 parent df2efbe commit e0b4cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmengine/runner/loops.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def run(self) -> dict:
metrics = self.evaluator.evaluate(len(self.dataloader.dataset))

if self.test_loss:
# get test loss and save to metricsexit()
# get test loss and save to metrics
test_loss = 0
for loss_name, loss_value in self.test_loss.items():
avg_loss = sum(loss_value) / len(loss_value)
Expand Down

0 comments on commit e0b4cea

Please sign in to comment.