@@ -3,7 +3,7 @@ Pkg.activate(@__DIR__)
3
3
Pkg. develop (; path= joinpath (@__DIR__ , " .." , " .." , " .." ))
4
4
5
5
using NormalizingFlows
6
- using CUDA, Distributions, Flux, LinearAlgebra, Test
6
+ using Bijectors, CUDA, Distributions, Flux, LinearAlgebra, Test
7
7
8
8
@testset " rand with CUDA" begin
9
9
dists = [
@@ -12,8 +12,8 @@ using CUDA, Distributions, Flux, LinearAlgebra, Test
12
12
]
13
13
14
14
@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 )
17
17
@test x isa CuArray
18
18
@test xs isa CuArray
19
19
end
@@ -24,8 +24,8 @@ using CUDA, Distributions, Flux, LinearAlgebra, Test
24
24
ts_g = gpu (ts)
25
25
flow = Bijectors. transformed (dist, ts_g)
26
26
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 )
29
29
@test y isa CuArray
30
30
@test ys isa CuArray
31
31
end
0 commit comments