Skip to content

Commit b95a84a

Browse files
authored
Try to specify cotangent
1 parent 6a467f9 commit b95a84a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/basekernels/matern.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
@test k2(v1, v2) k(v1, v2)
2020

2121
# Test custom `rrule` (Zygote workaround).
22-
test_rrule(KernelFunctions._get_ν, MaternKernel(; nu=rand()))
22+
k = MaternKernel(; ν=rand())
23+
test_rrule(KernelFunctions._get_ν, k Tangent{typeof(k)}(; ν=randn(), metric=NoTangent()))
2324

2425
# Standardised tests.
2526
TestUtils.test_interface(k, Float64)

0 commit comments

Comments
 (0)