Skip to content

Commit

Permalink
temp fix erros in removing vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
tongxin committed Apr 16, 2022
1 parent 4e27f67 commit 2fd5fde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/paddle/autograd/primx.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ def _lower(block, reverse, update_var_list):
for op_idx in reversed(ops_to_remove):
block._remove_op(op_idx)
for var_name in vars_to_remove:
block._remove_var(var_name)
# block._remove_var(var_name)
del block.vars[var_name]

if update_var_list is not None:
for i in range(len(update_var_list)):
Expand Down

0 comments on commit 2fd5fde

Please sign in to comment.