@@ -5,15 +5,11 @@ using DynamicPPL.TestUtils.AD: run_ad, WithExpectedResult, NoTest
55 # Used as the ground truth that others are compared against.
66 ref_adtype = AutoForwardDiff ()
77
8- test_adtypes = if MOONCAKE_SUPPORTED
9- [
10- AutoReverseDiff (; compile= false ),
11- AutoReverseDiff (; compile= true ),
12- AutoMooncake (; config= nothing ),
13- ]
14- else
15- [AutoReverseDiff (; compile= false ), AutoReverseDiff (; compile= true )]
16- end
8+ test_adtypes = [
9+ AutoReverseDiff (; compile= false ),
10+ AutoReverseDiff (; compile= true ),
11+ AutoMooncake (; config= nothing ),
12+ ]
1713
1814 @testset " Unsupported backends" begin
1915 @model demo () = x ~ Normal ()
@@ -43,13 +39,13 @@ using DynamicPPL.TestUtils.AD: run_ad, WithExpectedResult, NoTest
4339 # Put predicates here to avoid long lines
4440 is_mooncake = adtype isa AutoMooncake
4541 is_1_10 = v " 1.10" <= VERSION < v " 1.11"
46- is_1_11 = v " 1.11" <= VERSION < v " 1.12 "
42+ is_1_11_or_1_12 = v " 1.11" <= VERSION < v " 1.13 "
4743 is_svi_vnv =
4844 linked_varinfo isa SimpleVarInfo{<: DynamicPPL.VarNamedVector }
4945 is_svi_od = linked_varinfo isa SimpleVarInfo{<: OrderedDict }
5046
5147 # Mooncake doesn't work with several combinations of SimpleVarInfo.
52- if is_mooncake && is_1_11 && is_svi_vnv
48+ if is_mooncake && is_1_11_or_1_12 && is_svi_vnv
5349 # https://github.com/compintell/Mooncake.jl/issues/470
5450 @test_throws ArgumentError DynamicPPL. LogDensityFunction (
5551 m, getlogjoint_internal, linked_varinfo; adtype= adtype
0 commit comments