Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions DifferentiationInterface/test/Back/Mooncake/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ using Test
using ExplicitImports
check_no_implicit_imports(DifferentiationInterface)

nomatrix(scens) = filter(s -> !(s.x isa AbstractMatrix) && !(s.y isa AbstractMatrix), scens)

backends = [
AutoMooncake(),
AutoMooncakeForward(),
Expand All @@ -20,14 +22,21 @@ for backend in backends
end

test_differentiation(
backends,
backends[3:4],
default_scenarios(;
include_constantified = true, include_cachified = true, use_tuples = true
);
excluded = SECOND_ORDER,
logging = LOGGING,
);

test_differentiation(
backends[1:2],
nomatrix(default_scenarios());
excluded = SECOND_ORDER,
logging = LOGGING,
);

EXCLUDED = @static if VERSION ≥ v"1.11-" && VERSION ≤ v"1.12-"
# testing only :hessian on 1.11 due to an opaque closure bug.
# this is potentially the same issue as discussed in
Expand All @@ -54,7 +63,7 @@ end

test_differentiation(
backends[3:4],
static_scenarios();
nomatrix(static_scenarios());
logging = LOGGING,
excluded = SECOND_ORDER
)
Loading