Former-commit-id: 22959bcdd3b124a642e2acaadc050e36d0520f52
This commit is contained in:
hiyouga 2024-09-03 00:46:25 +08:00
parent 6e98872622
commit 982585e375

View File

@ -65,6 +65,7 @@ class ComputeAccuracy:
r"""
Computes accuracy and supports `batch_eval_metrics`.
"""
def _dump(self) -> Optional[Dict[str, float]]:
result = None
if hasattr(self, "score_dict"):