1- Test. @testset verbose = true showtiming = true failfast = false " CheckByJET" begin
2- JET. test_package (
3- ContinuousNormalizingFlows;
4- target_modules = (ContinuousNormalizingFlows,),
5- )
6- Test. @testset verbose = true showtiming = true failfast = false " $device | $compute_mode | $omode | inplace = $inplace | conditioned = $conditioned | planar = $planar " for device in
7- devices,
8- compute_mode in compute_modes,
9- omode in omodes,
10- inplace in inplaces,
11- conditioned in conditioneds,
12- planar in planars
1+ Test. @testset let ndata = 4 , ndimensions = 2 , α = 2 , β = 4
2+ Test. @testset verbose = true showtiming = true failfast = false " CheckByJET" begin
3+ JET. test_package (
4+ ContinuousNormalizingFlows;
5+ target_modules= (ContinuousNormalizingFlows,),
6+ )
7+ Test. @testset verbose = true showtiming = true failfast = false " $device | $compute_mode | $omode | inplace = $inplace | conditioned = $conditioned | planar = $planar " for device in
8+ devices,
9+ compute_mode in compute_modes,
10+ omode in omodes,
11+ inplace in inplaces,
12+ conditioned in conditioneds,
13+ planar in planars
1314
14- Test. @testset let ndata = 4 , ndimensions = 2 , α = 2 , β = 4
1515 data_dist =
1616 Distributions. Beta {Float32} (convert (Float32, α), convert (Float32, β))
1717 data_dist2 =
@@ -32,7 +32,7 @@ Test.@testset verbose = true showtiming = true failfast = false "CheckByJET" beg
3232 icnf = ifelse (
3333 planar,
3434 ContinuousNormalizingFlows. ICNF (;
35- nn = ifelse (
35+ nn= ifelse (
3636 conditioned,
3737 Lux. Chain (
3838 ContinuousNormalizingFlows. PlanarLayer (
@@ -48,14 +48,14 @@ Test.@testset verbose = true showtiming = true failfast = false "CheckByJET" beg
4848 ),
4949 ),
5050 nvariables,
51- nconditions = ifelse (conditioned, nvariables, 0 ),
51+ nconditions= ifelse (conditioned, nvariables, 0 ),
5252 inplace,
5353 compute_mode,
5454 device,
5555 ),
5656 ContinuousNormalizingFlows. ICNF (;
5757 nvariables,
58- nconditions = ifelse (conditioned, nvariables, 0 ),
58+ nconditions= ifelse (conditioned, nvariables, 0 ),
5959 inplace,
6060 compute_mode,
6161 device,
@@ -73,24 +73,24 @@ Test.@testset verbose = true showtiming = true failfast = false "CheckByJET" beg
7373 JET. test_call (
7474 ContinuousNormalizingFlows. loss,
7575 typeof ((icnf, omode, r, r2, ps, st));
76- target_modules = (ContinuousNormalizingFlows,),
76+ target_modules= (ContinuousNormalizingFlows,),
7777 )
7878 JET. test_opt (
7979 ContinuousNormalizingFlows. loss,
8080 typeof ((icnf, omode, r, r2, ps, st));
81- target_modules = (ContinuousNormalizingFlows,),
81+ target_modules= (ContinuousNormalizingFlows,),
8282 )
8383 else
8484 ContinuousNormalizingFlows. loss (icnf, omode, r, ps, st)
8585 JET. test_call (
8686 ContinuousNormalizingFlows. loss,
8787 typeof ((icnf, omode, r, ps, st));
88- target_modules = (ContinuousNormalizingFlows,),
88+ target_modules= (ContinuousNormalizingFlows,),
8989 )
9090 JET. test_opt (
9191 ContinuousNormalizingFlows. loss,
9292 typeof ((icnf, omode, r, ps, st));
93- target_modules = (ContinuousNormalizingFlows,),
93+ target_modules= (ContinuousNormalizingFlows,),
9494 )
9595 end
9696 end
0 commit comments