Skip to content

Commit 90321c6

Browse files
committed
fix test for estimate_objective by changing the tolerance mode
1 parent fe03f4c commit 90321c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/algorithms/repgradelbo.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
@test isfinite(obj_est)
4242

4343
obj_est = estimate_objective(rng, alg, q_true, model; n_samples=10^5)
44-
@test obj_est 0 rtol=1e-2
44+
@test obj_est 0 atol=1e-2
4545
end
4646
end
4747

test/algorithms/scoregradelbo.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
@test isfinite(obj_est)
3838

3939
obj_est = estimate_objective(rng, alg, q_true, model; n_samples=10^5)
40-
@test obj_est 0 rtol = 1e-2
40+
@test obj_est 0 atol = 1e-2
4141
end
4242

4343
@testset "warn MvLocationScale with IdentityOperator" begin

0 commit comments

Comments
 (0)