From 62339161cddb9bfa0f979f6354a37acfa11cbd2b Mon Sep 17 00:00:00 2001 From: "yichang.zyc" Date: Tue, 25 Oct 2022 19:26:44 +0800 Subject: [PATCH] revert args of metric init Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/10521235 --- modelscope/metrics/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modelscope/metrics/base.py b/modelscope/metrics/base.py index 1b9db825..955946b5 100644 --- a/modelscope/metrics/base.py +++ b/modelscope/metrics/base.py @@ -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.