Skip to content

Commit

Permalink
Fix div_p jvp rule
Browse files Browse the repository at this point in the history
  • Loading branch information
0x45f committed May 7, 2022
1 parent 8b2e5ee commit dd98410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/incubate/autograd/primrules.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def div_jvp(op, x_dot, y_dot):
if y_dot is None:
return div(x_dot, y)
elif x_dot is None:
return div(mul(x, y_dot), mul(y, y))
return neg(div(mul(x, y_dot), mul(y, y)))
else:
t1 = div(x_dot, y)
t2 = div(mul(x, y_dot), mul(y, y))
Expand Down

0 comments on commit dd98410

Please sign in to comment.