Skip to content

Commit 39a22dc

Browse files
committed
Fix coverage
1 parent 01b90bf commit 39a22dc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/DifferentiationInterfaceMooncakeExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ using Mooncake:
3333

3434
const AnyAutoMooncake{C} = Union{AutoMooncake{C},AutoMooncakeForward{C}}
3535

36-
DI.check_available(::AnyAutoMooncake) = true
36+
DI.check_available(::AnyAutoMooncake{C}) where {C} = true
3737

3838
get_config(::AnyAutoMooncake{Nothing}) = Config()
3939
get_config(backend::AnyAutoMooncake{<:Config}) = backend.config

DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/forward_twoarg.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ end
5858
function DI.pushforward(
5959
f!::F,
6060
y,
61-
prep::MooncakeOneArgPushforwardPrep,
61+
prep::MooncakeTwoArgPushforwardPrep,
6262
backend::AutoMooncakeForward,
6363
x,
6464
tx::NTuple,
@@ -72,7 +72,7 @@ function DI.value_and_pushforward!(
7272
f!::F,
7373
y::Y,
7474
ty::NTuple,
75-
prep::MooncakeOneArgPushforwardPrep,
75+
prep::MooncakeTwoArgPushforwardPrep,
7676
backend::AutoMooncakeForward,
7777
x::X,
7878
tx::NTuple,
@@ -100,7 +100,7 @@ function DI.pushforward!(
100100
f!::F,
101101
y,
102102
ty::NTuple,
103-
prep::MooncakeOneArgPushforwardPrep,
103+
prep::MooncakeTwoArgPushforwardPrep,
104104
backend::AutoMooncakeForward,
105105
x,
106106
tx::NTuple,

0 commit comments

Comments
 (0)