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 just noticed this issue, which appeared for me between DI v0.6.17 and v0.6.18: I get ForwardDiff "Invalid Tag object" errors when calling a MarginalLogDensity that uses ForwardDiff for the Hessian. MWE:
I get the same error if I use dense ForwardDiff for the Hessian:
mld2 =MarginalLogDensity(ld, u, iw, (), LaplaceApprox(),
hess_adtype=AutoForwardDiff())
mld2(w[iv], ())
Confirming it only happens when ForwardDiff is used for the Hessian:
mld3 =MarginalLogDensity(ld, u, iw, (), LaplaceApprox(adtype=AutoForwardDiff()),
hess_adtype=AutoZygote())
mld3(w[iv], ()) # works
mld4 =MarginalLogDensity(ld, u, iw, (), LaplaceApprox(adtype=AutoZygote()),
hess_adtype=AutoForwardDiff())
mld4(w[iv], ()) # error# defining the SecondOrder manually to confirm defaults are doing what I think they are
ad =AutoForwardDiff()
hess_ad =AutoSparse(
SecondOrder(AutoForwardDiff(), ad),
DenseSparsityDetector(ad, atol=sqrt(eps())),
GreedyColoringAlgorithm())
mld5 =MarginalLogDensity(ld, u, iw, (), LaplaceApprox(adtype=ad),
hess_adtype=hess_ad)
mld5(w[iv], ()) # error
The text was updated successfully, but these errors were encountered:
Okay I think I found the cause and it is on the MarginalLogDensities side. I opened ElOceanografo/MarginalLogDensities.jl#36 to fix it, can you confirm that it works?
I just noticed this issue, which appeared for me between DI v0.6.17 and v0.6.18: I get ForwardDiff "Invalid Tag object" errors when calling a
MarginalLogDensity
that uses ForwardDiff for the Hessian. MWE:I get the same error if I use dense ForwardDiff for the Hessian:
Confirming it only happens when ForwardDiff is used for the Hessian:
The text was updated successfully, but these errors were encountered: