File tree Expand file tree Collapse file tree
DifferentiationInterface/test/Back/Enzyme Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363end
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+ AutoEnzyme (),
75+ default_scenarios (; include_constantified = true );
76+ excluded = vcat (FIRST_ORDER, :second_derivative ),
77+ logging = LOGGING,
78+ )
79+
80+ test_differentiation (
81+ # TODO : simplify when https://github.com/EnzymeAD/Enzyme.jl/issues/2854 and https://github.com/EnzymeAD/Enzyme.jl/issues/2925 are fixed
82+ if VERSION >= v " 1.11"
83+ SecondOrder (
84+ AutoEnzyme (; mode = Enzyme. set_runtime_activity (Enzyme. Forward)),
85+ AutoEnzyme (; mode = Enzyme. set_runtime_activity (Enzyme. Reverse))
86+ )
87+ else
88+ AutoEnzyme ()
89+ end ,
90+ default_scenarios (; include_normal = false , include_constantified = false , include_cachified = true );
91+ excluded = vcat (FIRST_ORDER, :second_derivative ),
92+ logging = LOGGING,
93+ )
94+
6695 test_differentiation (
6796 [
68- AutoEnzyme (),
6997 SecondOrder (
7098 AutoEnzyme (; mode = Enzyme. Reverse), AutoEnzyme (; mode = Enzyme. Forward)
7199 ),
You can’t perform that action at this time.
0 commit comments