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
throw(ArgumentError("The log density function does not support the LogDensityProblems.jl interface"))
154
155
end
155
-
156
-
if cap === LogDensityProblems.LogDensityOrder{0}()
157
-
throw(ArgumentError("The gradient of the log density function is not defined: Implement `LogDensityProblems.logdensity_and_gradient` or use automatic differentiation by calling `Hamiltionian(metric, model, AD; kwargs...)` where AD is one of the backends supported by LogDensityProblemsAD.jl"))
156
+
# Check if we're capable of computing gradients.
157
+
ℓπ =if cap === LogDensityProblems.LogDensityOrder{0}()
158
+
# In this case ℓ does not support evaluation of the gradient of the log density function
0 commit comments