tpapp / LogDensityProblemsAD.jl

AD backends for LogDensityProblems.jl.
MIT License
12 stars 6 forks source link

Support for non-Float64 eltypes when using ForwardDiff #3

Closed torfjelde closed 1 year ago

torfjelde commented 1 year ago

See tests for example + things like

x = ComponentVector(x = zeros(3))
∇ℓ = ADgradient(:ForwardDiff, ℓ; input=x)

also works.

tpapp commented 1 year ago

@devmotion: I am on holiday and will only check my emails occasionally in the next week or so, feel free to merge this and tag a release once your suggestions are implemented, so that TuringLang/AdvancedHMC.jl#301 is not held up.

torfjelde commented 1 year ago

Great! Made the changes:)