diff --git a/test/ad/enzyme.jl b/test/ad/enzyme.jl index db787d80..78fcab05 100644 --- a/test/ad/enzyme.jl +++ b/test/ad/enzyme.jl @@ -10,13 +10,13 @@ Ty in (Const, Duplicated), Tz in (Const, Duplicated) + # Rule not picked up by Enzyme on Julia 1.11?! + # Ref https://github.com/TuringLang/Bijectors.jl/pull/350#issuecomment-2470766968 if VERSION >= v"1.11" && Tx <: Const && Ty <: Const && Tz <: Const - # Rule not picked up by Enzyme on Julia 1.11?! - # Ref https://github.com/TuringLang/Bijectors.jl/pull/350#issuecomment-2470766968 - @test_throws Exception test_forward(Bijectors.find_alpha, RT, (x, Tx), (y, Ty), (z, Tz)) - else - test_forward(Bijectors.find_alpha, RT, (x, Tx), (y, Ty), (z, Tz)) + continue end + + test_forward(Bijectors.find_alpha, RT, (x, Tx), (y, Ty), (z, Tz)) end # Batches @@ -25,13 +25,13 @@ Ty in (Const, BatchDuplicated), Tz in (Const, BatchDuplicated) + # Rule not picked up by Enzyme on Julia 1.11?! + # Ref https://github.com/TuringLang/Bijectors.jl/pull/350#issuecomment-2470766968 if VERSION >= v"1.11" && Tx <: Const && Ty <: Const && Tz <: Const - # Rule not picked up by Enzyme on Julia 1.11?! - # Ref https://github.com/TuringLang/Bijectors.jl/pull/350#issuecomment-2470766968 - @test_throws Exception test_forward(Bijectors.find_alpha, RT, (x, Tx), (y, Ty), (z, Tz)) - else - test_forward(Bijectors.find_alpha, RT, (x, Tx), (y, Ty), (z, Tz)) + continue end + + test_forward(Bijectors.find_alpha, RT, (x, Tx), (y, Ty), (z, Tz)) end end @testset "reverse" begin