diff --git a/paddle/py_paddle/util.py b/paddle/py_paddle/util.py index fb337b8af378edee424cd5e8191eb66cbc16f010..1c9455fab5f9c1179bddffb100cd53fe8adfb6b1 100644 --- a/paddle/py_paddle/util.py +++ b/paddle/py_paddle/util.py @@ -199,7 +199,7 @@ def __monkeypatch_gradient_machine__(): return (self.getNonStaticParameter(i) for i in xrange(self.getNonStaticParameterSize())) - swig_paddle.GradientMachine.getParameters = getParameters + swig_paddle.GradientMachine.getNonStaticParameters = getNonStaticParameters def getLayerOutputs(self, layerNames): """