Skip to content

Commit

Permalink
modify ir_grad (#57449)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguoguo626807 authored Sep 19, 2023
1 parent a79ba09 commit f331c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/paddle/autograd/ir_backward.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ def update_input_grad_map(op, input_grads):
] = state.value_to_valuegrad[value]
else:
state.op_to_opgrad[op] = []
else:
state.op_to_opgrad[op] = []
else:
state.op_to_opgrad[op] = []


def create_backward_prune_set(inputs, outputs, no_grad_set, state):
Expand Down

0 comments on commit f331c38

Please sign in to comment.