You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to calculate the Hessian of a function I have that does not have a Forward rule defined for it, so I tried doing a double Reverse mode differentiation instead of a Forward over reverse mode. Doing so however seems to result in a segfault. Here's a MWE where I think I try to calculate the first row of the Hessian:
using Enzyme
x = [2.0,2.0]
bx = zeros(2)
bx2 = zeros(2)
bbx = [1.0,0.0]
function grad(x, bx)
Enzyme.autodiff(Reverse, Const(sum), Duplicated(x,bx))
return nothing
end
Enzyme.autodiff(
Reverse,
grad,
Duplicated(x, bx),
Duplicated(bx2,bbx)
)
The text was updated successfully, but these errors were encountered:
dominic-chang
changed the title
Reverse double Reverse mode differentiation results in segfault
Double Reverse mode differentiation results in segfault
Feb 3, 2025
I'm trying to calculate the Hessian of a function I have that does not have a Forward rule defined for it, so I tried doing a double Reverse mode differentiation instead of a Forward over reverse mode. Doing so however seems to result in a segfault. Here's a MWE where I think I try to calculate the first row of the Hessian:
The text was updated successfully, but these errors were encountered: