Skip to content

Commit e6106f4

Browse files
Using test_ADs (#305)
1 parent 2181649 commit e6106f4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/mokernels/slfm.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@
4040
return k((x1, 1), (x2, 1))
4141
end
4242

43-
a = rand()
44-
@test all(
45-
FiniteDifferences.j′vp(FDM, test_slfm, a, k.A, x1[1][1], x2[1][1]) .≈
46-
Zygote.pullback(test_slfm, k.A, x1[1][1], x2[1][1])[2](a),
43+
k = LatentFactorMOKernel(
44+
[SqExponentialKernel(), SqExponentialKernel(), SqExponentialKernel()],
45+
IndependentMOKernel(GaussianKernel()),
46+
rand(rng, out_dim, 3),
4747
)
48+
49+
test_ADs(k)
4850
end

0 commit comments

Comments
 (0)