Skip to content

Commit

Permalink
Test Enzyme on demo models
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Feb 16, 2025
1 parent e9cacd7 commit 25b6c7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/ad.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using DynamicPPL: LogDensityFunction
import Enzyme
using EnzymeCore: set_runtime_activity, Forward

@testset verbose = true "Automatic differentiation" begin
@testset "Unsupported backends" begin
Expand All @@ -24,7 +25,8 @@ import Enzyme
ref_logp, ref_grad = LogDensityProblems.logdensity_and_gradient(ref_ldf, x)

@testset "$adtype" for adtype in [
AutoEnzyme(),
AutoEnzyme(; mode=set_runtime_activity(Forward, true)),
AutoEnzyme(; mode=set_runtime_activity(Reverse, true)),
# AutoReverseDiff(; compile=false),
# AutoReverseDiff(; compile=true),
# AutoMooncake(; config=nothing),
Expand Down

0 comments on commit 25b6c7e

Please sign in to comment.