mirror of
https://github.com/modelscope/modelscope.git
synced 2026-09-01 19:49:03 +02:00
revert args of metric init
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/10521235
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user