tpapp / LogDensityProblemsAD.jl

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

Support ADTypes 2 and AutoForwardDiff tags #21

Closed devmotion closed 1 year ago

devmotion commented 1 year ago

This PR adds support for ADTypes 2. Unfortunately, CompatHelper does not support weak dependencies yet (https://github.com/JuliaRegistries/CompatHelper.jl/issues/452) but apparently there is a PR that would fix this (https://github.com/JuliaRegistries/CompatHelper.jl/pull/458).

Edit: Seems that ADTypes 1.7 broke our tests (positional argument was switched to a keyword argument, consistent with other AD types). Additionally, I added support for AutoForwardDiff tags which was also added in ADTypes 1.7.