From 7f37060879a8e10ee92028f92bef7346afb86a13 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Mon, 7 May 2018 13:11:35 +0800 Subject: [PATCH] revert CompositeMetric::add_metric --- python/paddle/fluid/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/metrics.py b/python/paddle/fluid/metrics.py index 7f9e958a8..bb9c6fdc6 100644 --- a/python/paddle/fluid/metrics.py +++ b/python/paddle/fluid/metrics.py @@ -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) -- GitLab