File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,11 @@ using Turing
71
71
@varname (mu2) => ESS (),
72
72
)
73
73
chain = sample (StableRNG (seed), MoGtest_default, alg, 2000 )
74
- check_MoGtest_default (chain; atol= 0.1 )
74
+ # (penelopeysm) Note that the tolerance for x86 needs to be larger
75
+ # because CSMC (i.e. PG) is not reproducible across architectures.
76
+ # See https://github.com/TuringLang/Turing.jl/issues/2446.
77
+ atol = Sys. ARCH == :i686 ? 0.12 : 0.1
78
+ check_MoGtest_default (chain; atol= atol)
75
79
end
76
80
77
81
@testset " TestModels" begin
Original file line number Diff line number Diff line change 481
481
# the posterior is analytically known? Doing 10_000 samples to run the test suite
482
482
# is not ideal
483
483
# Issue ref: https://github.com/TuringLang/Turing.jl/issues/2402
484
- @test isapprox (mean (num_ms), 8.6087 ; atol= 0.8 )
484
+
485
+ # (penelopeysm) Note also the larger atol on x86 runners. This is needed because PG
486
+ # is not fully reproducible across architectures, even when seeded as above. See https://github.com/TuringLang/Turing.jl/issues/2446
487
+ mean_atol = Sys. ARCH == :i686 ? 1.3 : 0.8
488
+ @test isapprox (mean (num_ms), 8.6087 ; atol= mean_atol)
485
489
@test isapprox (std (num_ms), 1.8865 ; atol= 0.02 )
486
490
end
487
491
You can’t perform that action at this time.
0 commit comments