Skip to content

Commit

Permalink
Add some more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simsurace committed Feb 21, 2024
1 parent 5204990 commit 35207e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ using Test
x0 = rand(Float32, 10) |> jl
x1 = rand(Float32, 10) |> jl
@testset "$k" for k in (
ScalarSEKernel(), ScalarLinearKernel(), ScalarPeriodicKernel()
ScalarSEKernel(), ScalarLinearKernel(), ScalarPeriodicKernel(),
with_lengthscale(ScalarSEKernel(), 2.), 2. * ScalarLinearKernel(),
ScalarSEKernel() + ScalarPeriodicKernel(),
# ScalarSEKernel() * ScalarPeriodicKernel()
)
kgpu = gpu(k)
@test (@inferred kernelmatrix(kgpu, x0)) isa AbstractMatrix{Float32}
Expand Down

0 comments on commit 35207e0

Please sign in to comment.