Skip to content

Commit

Permalink
Simplify test_broken syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Jan 20, 2025
1 parent 107fac5 commit 373c894
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/mcmc/hmc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,7 @@ using Turing
r_mean = dropdims(mean(r; dims=1); dims=1)

# TODO(mhauru) The below remains broken for Enzyme. Need to investigate why.
if !(adbackend isa AutoEnzyme)
@test isapprox(r_mean, mean(dist); atol=0.2)
else
@test_broken isapprox(r_mean, mean(dist); atol=0.2)
end
@test isapprox(r_mean, mean(dist); atol=0.2) broken=(adbackend isa AutoEnzyme)
end

@testset "multivariate support" begin
Expand Down

0 comments on commit 373c894

Please sign in to comment.