Skip to content

Commit

Permalink
add sorted for set
Browse files Browse the repository at this point in the history
  • Loading branch information
levi131 committed Apr 19, 2022
1 parent 6a2f1fd commit bcd4dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/autograd/primx.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,5 +536,5 @@ def bind_name(names, to_bind):

for op_idx in reversed(ops_to_remove):
block._remove_op(op_idx)
for var_name in vars_to_remove:
for var_name in sorted(vars_to_remove):
block._remove_var(var_name)

0 comments on commit bcd4dea

Please sign in to comment.