Skip to content

Commit

Permalink
Add Enzyme testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Dec 9, 2024
1 parent 0548ddf commit ad5b573
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/ad.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@testset "AD: ForwardDiff, ReverseDiff, and Mooncake" begin
using Enzyme

@testset "AD: ForwardDiff, ReverseDiff, Mooncake, and Enzyme" begin
@testset "$(m.f)" for m in DynamicPPL.TestUtils.DEMO_MODELS
f = DynamicPPL.LogDensityFunction(m)
rand_param_values = DynamicPPL.TestUtils.rand_prior_true(m)
Expand All @@ -21,6 +23,8 @@
ADTypes.AutoReverseDiff(; compile=false),
ADTypes.AutoReverseDiff(; compile=true),
ADTypes.AutoMooncake(; config=nothing),
ADTypes.AutoEnzyme(; mode=Enzyme.Forward),
ADTypes.AutoEnzyme(; mode=Enzyme.Reverse),
]
# Mooncake can't currently handle something that is going on in
# SimpleVarInfo{<:VarNamedVector}. Disable all SimpleVarInfo tests for now.
Expand Down

0 comments on commit ad5b573

Please sign in to comment.