Skip to content

Commit 36f5a4a

Browse files
committed
Fix
1 parent ac0fb12 commit 36f5a4a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

DifferentiationInterface/test/Core/Internals/signature.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ c = 2.0
1212

1313
@testset "Out of place, no tangents" begin
1414
prep = prepare_derivative(f, backend, x, Constant(c))
15-
prep_chill = prepare_derivative(f, backend, x, Constant(c))
15+
prep_chill = prepare_derivative(f, backend, x, Constant(c); strict=Val(false))
1616

1717
@test_throws MethodError derivative(nothing, prep_chill, backend, x, Constant(c))
1818

@@ -69,7 +69,7 @@ end
6969

7070
@testset "In place, no tangents" begin
7171
prep = prepare_derivative(f!, y, backend, x)
72-
prep_chill = prepare_derivative(f!, y, backend, x)
72+
prep_chill = prepare_derivative(f!, y, backend, x; strict=Val(false))
7373

7474
@test_throws MethodError derivative(nothing, y, prep_chill, backend, x, Constant(c))
7575

@@ -87,7 +87,7 @@ end
8787

8888
@testset "Out of place, with tangents" begin
8989
prep = prepare_pushforward(f, backend, x, (x,), Constant(c))
90-
prep_chill = prepare_pushforward(f, backend, x, (x,), Constant(c))
90+
prep_chill = prepare_pushforward(f, backend, x, (x,), Constant(c); strict=Val(false))
9191

9292
@test_throws MethodError pushforward(nothing, prep_chill, backend, x, (x,))
9393

@@ -105,7 +105,9 @@ end
105105

106106
@testset "In place, with tangents" begin
107107
prep = prepare_pushforward(f!, y, backend, x, (x,))
108-
prep_chill = prepare_pushforward(f!, y, backend, x, (x,), Constant(c))
108+
prep_chill = prepare_pushforward(
109+
f!, y, backend, x, (x,), Constant(c); strict=Val(false)
110+
)
109111

110112
@test_throws MethodError pushforward(nothing, y, prep_chill, backend, x, (x,))
111113

0 commit comments

Comments
 (0)