We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2b2fe2 commit 31c60d3Copy full SHA for 31c60d3
autograd/cupy/cupy_grads.py
@@ -27,7 +27,7 @@
27
unbroadcast(vs, gvs, g * y * x ** acp.where(y, y - 1, 1)))
28
29
acp.exp.defvjp(lambda g, ans, vs, gvs, x : ans * g)
30
-acp.sinh.defvjp(lambda g, ans, vs, gvs, x: g * acp.cosh)
+acp.sinh.defvjp(lambda g, ans, vs, gvs, x: g * acp.cosh(x))
31
acp.cosh.defvjp(lambda g, ans, vs, gvs, x: g * acp.sinh(x))
32
acp.tanh.defvjp(lambda g, ans, vs, gvs, x: g / acp.cosh(x)**2)
33
acp.negative.defvjp(lambda g, ans, vs, gvs, x: -g)
0 commit comments