Skip to content

Commit 5e7ed7d

Browse files
committed
Fix test
1 parent 2b2f352 commit 5e7ed7d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/ad.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,11 @@ end
281281

282282
@testset verbose = true "AD / Gibbs sampling" begin
283283
# Make sure that Gibbs sampling doesn't fall over when using AD.
284-
spl = Gibbs(@varname(s) => HMC(0.1, 10), @varname(m) => HMC(0.1, 10))
285284
@testset "adtype=$adtype" for adtype in ADTYPES
285+
spl = Gibbs(
286+
@varname(s) => HMC(0.1, 10; adtype=adtype),
287+
@varname(m) => HMC(0.1, 10; adtype=adtype),
288+
)
286289
@testset "model=$(model.f)" for model in DEMO_MODELS
287290
@test sample(model, spl, 2) isa Any
288291
end

0 commit comments

Comments
 (0)