Skip to content

Commit 870778b

Browse files
committed
fix conditionally load Enzyme in tests
1 parent ecb4813 commit 870778b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/runtests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ using DistributionsAD
2121
@functor TuringDiagMvNormal
2222

2323
using ADTypes
24-
using ForwardDiff, ReverseDiff, Zygote, Mooncake, Enzyme
24+
using ForwardDiff, ReverseDiff, Zygote, Mooncake
2525

2626
using AdvancedVI
2727

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

30+
if TEST_GROUP == "Enzyme"
31+
using Enzyme
32+
end
33+
3034
# Models for Inference Tests
3135
struct TestModel{M,L,S,SC}
3236
model::M

0 commit comments

Comments
 (0)