diff --git a/test/Project.toml b/test/Project.toml index 0af6b1366..c194c2482 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -3,10 +3,10 @@ AxisArrays = "39de3d68-74b9-583c-8d2d-e117c070f3a9" Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7" FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000" Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c" -ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" Kronecker = "2c470bb0-bcc8-11e8-3dad-c9649493f05e" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" PDMats = "90014a1f-27ba-587c-ab20-58faa44d9150" +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267" SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" @@ -18,7 +18,6 @@ AxisArrays = "0.4.3" Distances = "0.9" FiniteDifferences = "0.10.8" Flux = "0.10, 0.11" -ForwardDiff = "0.10" Kronecker = "0.4" PDMats = "0.9, 0.10" ReverseDiff = "1.2" diff --git a/test/basekernels/fbm.jl b/test/basekernels/fbm.jl index c7b0eb620..092b1f6df 100644 --- a/test/basekernels/fbm.jl +++ b/test/basekernels/fbm.jl @@ -22,7 +22,6 @@ @test kernelmatrix(k, x1*ones(1,1), x2*ones(1,1))[1] ≈ k(x1, x2) atol=1e-5 @test repr(k) == "Fractional Brownian Motion Kernel (h = $(h))" - test_ADs(FBMKernel, ADs = [:ReverseDiff, :Zygote]) - @test_broken "Tests failing for kernelmatrix(k, x) for ForwardDiff" + test_ADs(FBMKernel) test_params(k, ([h],)) end diff --git a/test/basekernels/gabor.jl b/test/basekernels/gabor.jl index 6488010ee..72051f6bc 100644 --- a/test/basekernels/gabor.jl +++ b/test/basekernels/gabor.jl @@ -17,6 +17,6 @@ @test k.ell ≈ 1.0 atol=1e-5 @test k.p ≈ 1.0 atol=1e-5 @test repr(k) == "Gabor Kernel (ell = 1.0, p = 1.0)" - test_ADs(x -> GaborKernel(ell = x[1], p = x[2]), [ell, p], ADs = [:Zygote]) - # Tests are also failing randomly for ForwardDiff and ReverseDiff but randomly + test_ADs(x -> GaborKernel(ell = x[1], p = x[2]), [ell, p], ADs = [:Zygote, :ForwardDiff]) + @test_broken "Tests are also failing randomly for ReverseDiff but randomly" end diff --git a/test/basekernels/wiener.jl b/test/basekernels/wiener.jl index 624837b8c..e88e82e77 100644 --- a/test/basekernels/wiener.jl +++ b/test/basekernels/wiener.jl @@ -51,6 +51,6 @@ @test kernelmatrix(k2, x1*ones(1,1), x2*ones(1,1))[1] ≈ k2(x1, x2) atol=1e-5 @test kernelmatrix(k3, x1*ones(1,1), x2*ones(1,1))[1] ≈ k3(x1, x2) atol=1e-5 - # test_ADs(()->WienerKernel(i=1)) - @test_broken "No tests passing" + test_ADs(()->WienerKernel(i=1), ADs=[:ForwardDiff]) + @test_broken "Zygote and ReverseDiff fail" end diff --git a/test/runtests.jl b/test/runtests.jl index f9fdf641c..a6551c926 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -8,6 +8,10 @@ using Random using SpecialFunctions using Test using Flux + +using Pkg +Pkg.add(PackageSpec(; url="https://github.com/JuliaDiff/ForwardDiff.jl", rev="nansafe")) + import Zygote, ForwardDiff, ReverseDiff, FiniteDifferences using KernelFunctions: SimpleKernel, metric, kappa, ColVecs, RowVecs