Skip to content

Commit a4387a8

Browse files
committed
Remove AD loop in Gibbs
1 parent 62d414f commit a4387a8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

test/mcmc/gibbs.jl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,9 @@ end
384384
@test wuc.non_warmup_count == (num_samples - 1) * num_reps
385385
end
386386

387-
@testset "Testing gibbs.jl with $adbackend" for adbackend in ADUtils.adbackends
388-
@info "Starting Gibbs tests with $adbackend"
387+
@testset "Testing gibbs.jl" begin
388+
@info "Starting Gibbs tests"
389+
adbackend = Turing.DEFAULT_ADTYPE
389390

390391
@testset "Gibbs constructors" begin
391392
# Create Gibbs samplers with various configurations and ways of passing the
@@ -604,12 +605,7 @@ end
604605
return m .~ Normal(1.0, 1.0)
605606
end
606607
model = dynamic_model_with_dot_tilde()
607-
# TODO(mhauru) This is broken because of
608-
# https://github.com/TuringLang/DynamicPPL.jl/issues/700.
609-
@test_broken (
610-
sample(model, Gibbs(:z => PG(10), :m => HMC(0.01, 4; adtype=adbackend)), 100);
611-
true
612-
)
608+
sample(model, Gibbs(:z => PG(10), :m => HMC(0.01, 4; adtype=adbackend)), 100)
613609
end
614610

615611
@testset "Demo models" begin

0 commit comments

Comments
 (0)