Skip to content

Commit

Permalink
fix opt-offload save bug (#36433)
Browse files Browse the repository at this point in the history
  • Loading branch information
firestonelib authored Oct 15, 2021
1 parent 12882b2 commit e703a2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ def is_opt_vars(var):
"_velocity_0"
]
for check in checks:
if var.name.endswith(check):
if var.name.endswith(check) and var.persistable:
return True
return False

Expand Down

0 comments on commit e703a2e

Please sign in to comment.