File tree Expand file tree Collapse file tree
DifferentiationInterface/test/Back/Mooncake Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,22 @@ test_differentiation(
2828 logging = LOGGING,
2929);
3030
31+ EXCLUDED = @static if VERSION ≥ v " 1.11-" && VERSION ≤ v " 1.12-"
32+ # testing only :hessian on 1.11 due to an opaque closure bug.
33+ # This is potentially the same issue as discussed in
34+ # https://github.com/chalk-lab/MistyClosures.jl/pull/12#issue-3278662295
35+ [FIRST_ORDER... , :hvp , :second_derivative ],
36+ else
37+ [FIRST_ORDER... ],
38+ end
39+
40+ # Test second-order differentiation (forward-over-reverse)
41+ test_differentiation (
42+ [SecondOrder (AutoMooncakeForward (; config= nothing ), AutoMooncake (; config= nothing ))],
43+ excluded= EXCLUDED
44+ logging= true ,
45+ )
46+
3147@testset " NamedTuples" begin
3248 ps = (; A = rand (5 ), B = rand (5 ))
3349 myfun (ps) = sum (ps. A .* ps. B)
You can’t perform that action at this time.
0 commit comments