Skip to content

Commit

Permalink
set gradient_merge_cond persistable to false (#35578)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHUI committed Sep 10, 2021
1 parent 98d047d commit 47d15a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6918,7 +6918,7 @@ def _get_gm_cond_var(self, main_block):
shape=[1],
value=bool(0),
dtype='bool',
persistable=True,
persistable=False,
force_cpu=True)

with device_guard("cpu"):
Expand Down

0 comments on commit 47d15a3

Please sign in to comment.