Skip to content

Commit 0fff666

Browse files
authored
Merge pull request #16449 from panyx0718/imperative3
fix imperative varbase creation
2 parents 85e1cc1 + becf799 commit 0fff666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/fluid/framework.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ def __init__(self,
403403
self._ivar = core.VarBase(
404404
name, dtype if dtype else core.VarDesc.VarType.FP32,
405405
list(shape) if shape else [],
406-
_current_expected_place(), True
407-
if persistable else False, stop_gradient)
406+
_current_expected_place(), stop_gradient, True
407+
if persistable else False)
408408
if persistable:
409409
_imperative_tracer().trace_var(name, self)
410410
else:

0 commit comments

Comments
 (0)