From bf180577ba508d368fd8f200230eaf92b1567c59 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Wed, 16 Jan 2019 17:33:02 +0800 Subject: [PATCH] fix test=develop --- python/paddle/fluid/imperative/layers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/imperative/layers.py b/python/paddle/fluid/imperative/layers.py index 6cd0c297552..f457f56203e 100644 --- a/python/paddle/fluid/imperative/layers.py +++ b/python/paddle/fluid/imperative/layers.py @@ -35,7 +35,7 @@ class Layer(core.Layer): def clear_gradients(self): for p in self.parameters(): - p._clear() + p._clear_gradient() def _build_once(self, inputs): pass -- GitLab