revert args of metric init

Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/10521235
This commit is contained in:
yichang.zyc
2022-10-25 19:26:44 +08:00
committed by yingda.chen
parent e1ab73b7d8
commit 62339161cd

View File

@@ -10,6 +10,9 @@ class Metric(ABC):
complex metrics for a specific task with or without other Metric subclasses.
"""
def __init__(self, *args, **kwargs):
pass
@abstractmethod
def add(self, outputs: Dict, inputs: Dict):
""" Append logits and labels within an eval loop.