Skip to content

Commit 4f8cac8

Browse files
committed
fix more errors
1 parent e4f4bde commit 4f8cac8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

test/ext/CUDA/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
Bijectors = "76274a88-744f-5084-9051-94815aaf08c4"
23
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
34
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
45
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"

test/ext/CUDA/cuda.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Pkg.activate(@__DIR__)
33
Pkg.develop(; path=joinpath(@__DIR__, "..", "..", ".."))
44

55
using NormalizingFlows
6-
using CUDA, Distributions, Flux, LinearAlgebra, Test
6+
using Bijectors, CUDA, Distributions, Flux, LinearAlgebra, Test
77

88
@testset "rand with CUDA" begin
99
dists = [
@@ -12,8 +12,8 @@ using CUDA, Distributions, Flux, LinearAlgebra, Test
1212
]
1313

1414
@testset "$dist" for dist in dists
15-
x = rand_device(CUDA.default_rng(), dist)
16-
xs = rand_device(CUDA.default_rng(), dist, 100)
15+
x = NormalizingFlows.rand_device(CUDA.default_rng(), dist)
16+
xs = NormalizingFlows.rand_device(CUDA.default_rng(), dist, 100)
1717
@test x isa CuArray
1818
@test xs isa CuArray
1919
end
@@ -24,8 +24,8 @@ using CUDA, Distributions, Flux, LinearAlgebra, Test
2424
ts_g = gpu(ts)
2525
flow = Bijectors.transformed(dist, ts_g)
2626

27-
y = rand_device(CUDA.default_rng(), flow)
28-
ys = rand_device(CUDA.default_rng(), flow, 100)
27+
y = NormalizingFlows.rand_device(CUDA.default_rng(), flow)
28+
ys = NormalizingFlows.rand_device(CUDA.default_rng(), flow, 100)
2929
@test y isa CuArray
3030
@test ys isa CuArray
3131
end

0 commit comments

Comments
 (0)