We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2ea94a commit f6fdc91Copy full SHA for f6fdc91
test/Project.toml
@@ -70,4 +70,4 @@ StatsBase = "0.33, 0.34"
70
StatsFuns = "0.9.5, 1"
71
TimerOutputs = "0.5"
72
Zygote = "0.5.4, 0.6"
73
-julia = "1.3"
+julia = "1.10"
test/mcmc/Inference.jl
@@ -22,25 +22,14 @@ using Turing
22
@testset "rng" begin
23
model = gdemo_default
24
25
- # multithreaded sampling with PG causes segfaults on Julia 1.5.4
26
- # https://github.com/TuringLang/Turing.jl/issues/1571
27
- samplers = @static if VERSION <= v"1.5.3" || VERSION >= v"1.6.0"
28
- (
29
- HMC(0.1, 7; adtype=adbackend),
30
- PG(10),
31
- IS(),
32
- MH(),
33
- Gibbs(PG(3, :s), HMC(0.4, 8, :m; adtype=adbackend)),
34
- Gibbs(HMC(0.1, 5, :s; adtype=adbackend), ESS(:m)),
35
- )
36
- else
37
38
39
40
41
42
43
- end
+ samplers = (
+ HMC(0.1, 7; adtype=adbackend),
+ PG(10),
+ IS(),
+ MH(),
+ Gibbs(PG(3, :s), HMC(0.4, 8, :m; adtype=adbackend)),
+ Gibbs(HMC(0.1, 5, :s; adtype=adbackend), ESS(:m)),
+ )
44
for sampler in samplers
45
Random.seed!(5)
46
chain1 = sample(model, sampler, MCMCThreads(), 1000, 4)
test/mcmc/abstractmcmc.jl
@@ -137,23 +137,14 @@ end
137
)
138
139
@testset "inference" begin
140
- if adtype isa AutoReverseDiff &&
141
- model.f === DynamicPPL.TestUtils.demo_assume_index_observe &&
142
- VERSION < v"1.8"
143
- # Ref: https://github.com/TuringLang/DynamicPPL.jl/issues/612
144
- @test_throws UndefRefError sample(
145
- model, sampler_ext, 5_000; sample_kwargs...
146
147
148
- DynamicPPL.TestUtils.test_sampler(
149
- [model],
150
- sampler_ext,
151
- 5_000;
152
- rtol=0.2,
153
- sampler_name="AdvancedHMC",
154
- sample_kwargs...,
155
156
+ DynamicPPL.TestUtils.test_sampler(
+ [model],
+ sampler_ext,
+ 5_000;
+ rtol=0.2,
+ sampler_name="AdvancedHMC",
+ sample_kwargs...,
157
end
158
159
0 commit comments