提交 7f370608 编写于 作者: Q qiaolongfei

revert CompositeMetric::add_metric

上级 171d3e86
......@@ -116,7 +116,7 @@ class CompositeMetric(MetricBase):
super(CompositeMetric, self).__init__(name, kwargs)
self._metrics = []
def update(self, metric):
def add_metric(self, metric):
if not isinstance(metric, MetricBase):
raise ValueError("SubMetric should be inherit from MetricBase.")
self._metrics.append(metric)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册