Skip to content

Commit 66b4c6c

Browse files
committed
test: bypass failing Enzyme test until upstream fix
1 parent cd515b3 commit 66b4c6c

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

  • DifferentiationInterface/test/Back/Enzyme

DifferentiationInterface/test/Back/Enzyme/test.jl

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,26 @@ end;
6363
end
6464

6565
@testset "Second order" begin
66+
test_differentiation(
67+
AutoEnzyme(),
68+
default_scenarios(; include_constantified = true, include_cachified = true);
69+
excluded = vcat(FIRST_ORDER, :hvp, :hessian),
70+
logging = LOGGING,
71+
)
72+
73+
test_differentiation(
74+
# TODO: replace with AutoEnzyme() when https://github.com/EnzymeAD/Enzyme.jl/issues/2854 is fixed
75+
SecondOrder(
76+
AutoEnzyme(; mode = Enzyme.set_runtime_activity(Enzyme.Forward)),
77+
AutoEnzyme(; mode = Enzyme.set_runtime_activity(Enzyme.Reverse))
78+
),
79+
default_scenarios(; include_constantified = true, include_cachified = true);
80+
excluded = vcat(FIRST_ORDER, :second_derivative),
81+
logging = LOGGING,
82+
)
83+
6684
test_differentiation(
6785
[
68-
AutoEnzyme(),
6986
SecondOrder(
7087
AutoEnzyme(; mode = Enzyme.Reverse), AutoEnzyme(; mode = Enzyme.Forward)
7188
),

0 commit comments

Comments
 (0)