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
10 changes: 9 additions & 1 deletion test/integration_testing/diffeq/diffeq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Pkg.develop(; path=joinpath(@__DIR__, "..", "..", ".."))

using OrdinaryDiffEq, SciMLSensitivity, Mooncake, StableRNGs, Test
using Mooncake.TestUtils: test_rule
using Mooncake: ReverseMode

# Helper function for Mooncake gradient computation
function mooncake_gradient(f, x)
Expand Down Expand Up @@ -49,7 +50,14 @@ end

# Test with Mooncake's test_rule
@testset "test_rule evaluation" begin
test_rule(rng, sense_func, u0p; is_primitive=false, unsafe_perturb=true)
test_rule(
rng,
sense_func,
u0p;
is_primitive=false,
unsafe_perturb=true,
mode=ReverseMode,
)
end
end
end
Loading