Skip to content

Commit

Permalink
Fix report bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yhna940 committed Sep 1, 2023
1 parent cfc3f6a commit 3488ae1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mmengine/tune/_report_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ def report_score(self) -> Optional[float]:
"""
if not self.scoreboard:
score = None
operation = self.report_op_supported[self.report_op]
score = operation(self.scoreboard)
else:
operation = self.report_op_supported[self.report_op]
score = operation(self.scoreboard)
return score

@classmethod
Expand Down

0 comments on commit 3488ae1

Please sign in to comment.