Skip to content

Commit

Permalink
clean a duplicate if
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Oct 14, 2023
1 parent 2df7cfa commit 6553d8d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/paddle/base/dygraph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,8 +800,6 @@ def check_in_out(in_out_list, name):
no_grad_vars = []
elif isinstance(no_grad_vars, core.eager.Tensor):
no_grad_vars = [no_grad_vars]
elif isinstance(no_grad_vars, core.eager.Tensor):
no_grad_vars = [no_grad_vars]
elif isinstance(no_grad_vars, (list, tuple, set)):
no_grad_vars = list(no_grad_vars)
for var in no_grad_vars:
Expand Down

0 comments on commit 6553d8d

Please sign in to comment.