Former-commit-id: 22959bcdd3
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""" r"""
Computes accuracy and supports `batch_eval_metrics`. Computes accuracy and supports `batch_eval_metrics`.
""" """
def _dump(self) -> Optional[Dict[str, float]]: def _dump(self) -> Optional[Dict[str, float]]:
result = None result = None
if hasattr(self, "score_dict"): if hasattr(self, "score_dict"):