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
using LinearAlgebra
using SparseArrays
using Enzyme: EnzymeRules
using Enzyme
N =5
σ =sprand(N,N, 0.1)
s =0.5.*(σ + σ') +5.*Diagonal(ones(N))
functionf(cho, x)
F = cho
B = x
sys = SparseArrays.CHOLMOD.CHOLMOD_A
SparseArrays.CHOLMOD.Dense{Float64}( SparseArrays.CHOLMOD.cholmod_l_solve(sys, F, B, getcommon(Int64)))
end
x =rand(N)
cho =cholesky(s)
x2 = SparseArrays.CHOLMOD.Dense{Float64}(x)
autodiff(Forward, f, Const, Const(cho), Const(x2))
Ok this is probably my fault with a buggy rule, but I am not sure what is causing this.
I have a custom rule for a
\
for a sparse cholesky. Here is a MWEThe error I get on my machine is
and this is on Enzyme#main using Julia 1.10.5. This only started to appear in recent Enzyme versions, and was fine e.g., in 0.13.9.
The text was updated successfully, but these errors were encountered: