Skip to content

Commit 5bcedc6

Browse files
committed
fix test error
1 parent 3f9cb32 commit 5bcedc6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/ext/CUDA/cuda.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ using NormalizingFlows
66
using CUDA, Distributions, Flux, LinearAlgebra, Test
77

88
@testset "rand with CUDA" begin
9-
dists = [MvNormal(CUDA.zeros(2), I), MvNormal(CUDA.zeros(2), cu([1.0 0.5; 0.5 1.0]))]
9+
dists = [
10+
MvNormal(CUDA.zeros(2), cu(Matrix{Float64}(I, 2, 2))),
11+
MvNormal(CUDA.zeros(2), cu([1.0 0.5; 0.5 1.0])),
12+
]
1013

1114
@testset "$dist" for dist in dists
1215
x = rand_device(CUDA.default_rng(), dist)
1316
xs = rand_device(CUDA.default_rng(), dist, 100)
14-
@info logpdf(dist, x)
1517
@test x isa CuArray
1618
@test xs isa CuArray
1719
end
@@ -24,7 +26,6 @@ using CUDA, Distributions, Flux, LinearAlgebra, Test
2426

2527
y = rand_device(CUDA.default_rng(), flow)
2628
ys = rand_device(CUDA.default_rng(), flow, 100)
27-
@info logpdf(flow, y)
2829
@test y isa CuArray
2930
@test ys isa CuArray
3031
end

0 commit comments

Comments
 (0)