Skip to content

Commit e1efedd

Browse files
chen2016013phlrain
andauthored
fix pre-dispatch bug (#10869)
Co-authored-by: phlrain <[email protected]>
1 parent b4b0587 commit e1efedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddlenlp/transformers/token_dispatcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,6 @@ def backward(self, token_probs_g):
258258
True,
259259
True,
260260
)
261-
probs_reshape_g = paddle._C_ops.reshape_grad(probs_grad, self.probs)
261+
probs_reshape_g = paddle._C_ops.reshape_grad(self.probs, probs_grad)
262262
self.reset_status()
263263
return probs_reshape_g

0 commit comments

Comments
 (0)