diff --git a/python/paddle/fluid/metrics.py b/python/paddle/fluid/metrics.py index 7f9e958a8e21297d7e7bf7046a9738408a11b7a9..bb9c6fdc60089fc2b43573a6421a6f9781d2d4a8 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)