File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ version = "0.1.0"
66[deps ]
77CUDA = " 052768ef-5323-5732-b1bb-66c8b64840ba"
88ComponentArrays = " b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
9- CoupledNODE = " 88291d29-22ea-41b1-bc0b-03785bffce48"
109Lux = " b2108857-7c20-44ae-9111-449ecde12c47"
1110LuxCore = " bb33d45b-7691-41d6-9220-0943567d0623"
1211Random = " 9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Original file line number Diff line number Diff line change 11[deps ]
22AttentionLayer = " 3ee63b08-73c5-50c8-acc9-f395aa68c39a"
33ComponentArrays = " b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
4- CoupledNODE = " 88291d29-22ea-41b1-bc0b-03785bffce48"
54Lux = " b2108857-7c20-44ae-9111-449ecde12c47"
65Test = " 8dfed614-e22c-5e08-85e1-65c5234f0b40"
76TestItemRunner = " f8b46487-2199-4994-9208-9a1283c18c0a"
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ using Test
22using Lux
33using AttentionLayer: attention
44using ComponentArrays: ComponentArray
5- using CoupledNODE: cnn
65using Random
76using Zygote: Zygote
87
@@ -19,16 +18,22 @@ using Zygote: Zygote
1918 rng = Xoshiro (123 )
2019
2120 # Test CNN Layer Setup
22- CnnLayers, _, _ = cnn (;
23- T = T,
24- D = D,
25- data_ch = 2 * D, # Input channels for CNN after concatenation
26- radii = [3 , 3 ],
27- channels = [2 , 2 ],
28- activations = [tanh, identity],
29- use_bias = [false , false ],
30- rng,
31- )
21+ r =
22+ [3 , 3 ], c =
23+ [2 , 2 ], σ =
24+ [tanh, identity], b =
25+ [false , false ], CnnLayers = (
26+ (
27+ Lux. Conv (
28+ ntuple (α -> 2 r[i] + 1 , D),
29+ c[i] => c[i+ 1 ],
30+ σ[i];
31+ use_bias = b[i],
32+ init_weight = glorot_uniform_T,
33+ pad = (ntuple (α -> 2 r[i] + 1 , D) .- 1 ) .÷ 2 ,
34+ ) for i in eachindex (r)
35+ ). .. ,
36+ )
3237
3338 # Verify CNN layers' setup
3439 @test CnnLayers != nothing
You can’t perform that action at this time.
0 commit comments