Skip to content

Commit

Permalink
Skip failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Nov 26, 2024
1 parent b3bfbfc commit 0a3e647
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/ad/enzyme.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0a3e647

Please sign in to comment.