Skip to content

Commit

Permalink
fix conditionally load Enzyme in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Portal committed Nov 30, 2024
1 parent ecb4813 commit 870778b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ using DistributionsAD
@functor TuringDiagMvNormal

using ADTypes
using ForwardDiff, ReverseDiff, Zygote, Mooncake, Enzyme
using ForwardDiff, ReverseDiff, Zygote, Mooncake

using AdvancedVI

const TEST_GROUP = get(ENV, "TEST_GROUP", "All")

if TEST_GROUP == "Enzyme"
using Enzyme
end

# Models for Inference Tests
struct TestModel{M,L,S,SC}
model::M
Expand Down

0 comments on commit 870778b

Please sign in to comment.