From 2e9336299f5eaa918d1fb3e71724046633efc7be Mon Sep 17 00:00:00 2001 From: lyuwenyu Date: Thu, 17 Jun 2021 16:19:53 +0800 Subject: [PATCH] update docs --- python/paddle/hapi/model.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/paddle/hapi/model.py b/python/paddle/hapi/model.py index d2493a74744..f4d3a78e250 100644 --- a/python/paddle/hapi/model.py +++ b/python/paddle/hapi/model.py @@ -1031,6 +1031,7 @@ class Model(object): a numpy array or paddle.Tensor, or a list of arrays or tensors (in case the model has multiple labels). If has no labels, set None. Default is None. + update (bool): Whether update parameters after loss.backward() computes. Using this to accumulate gradients. Default is True. Returns: A list of scalar training loss if the model has no metrics, @@ -2046,9 +2047,6 @@ class Model(object): outs = getattr(self, mode + '_batch')(*_inputs) - # outs = getattr(self, mode + '_batch')(data[:len(self._inputs)], - # data[len(self._inputs):]) - if self._metrics and self._loss: metrics = [[l[0] for l in outs[0]]] elif self._loss: -- GitLab