diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index ee366026f1c49044b7c7040f140abaf66b9c006a..b25d9441e0098ffaa7801cb9029d786587e74c25 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -403,8 +403,8 @@ class Variable(object): self._ivar = core.VarBase( name, dtype if dtype else core.VarDesc.VarType.FP32, list(shape) if shape else [], - _current_expected_place(), True - if persistable else False, stop_gradient) + _current_expected_place(), stop_gradient, True + if persistable else False) if persistable: _imperative_tracer().trace_var(name, self) else: