Skip to content

Commit ea1b92e

Browse files
committed
Adjust testing and use Chain(::Vector)
1 parent 01ab049 commit ea1b92e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/convnets/efficientnet.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function efficientnet(scalings, block_config;
5353

5454
top = Dense(head_out_channels, nclasses)
5555

56-
return Chain(Chain(stem..., blocks, head...),
56+
return Chain(Chain([stem..., blocks, head...]),
5757
Chain(AdaptiveMeanPool((1, 1)), MLUtils.flatten, top))
5858
end
5959

test/other.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@testset "MLPMixer" begin
2-
@testset for mode in [:small, :base, :large] # :huge]
2+
@testset for mode in [:small, :base] # :large, # :huge]
33
@testset for drop_path_rate in [0.0, 0.5]
44
m = MLPMixer(mode; drop_path_rate)
55
@test size(m(x_224)) == (1000, 1)
@@ -11,7 +11,7 @@
1111
end
1212

1313
@testset "ResMLP" begin
14-
@testset for mode in [:small, :base, :large] # :huge]
14+
@testset for mode in [:small, :base] # :large, # :huge]
1515
@testset for drop_path_rate in [0.0, 0.5]
1616
m = ResMLP(mode; drop_path_rate)
1717
@test size(m(x_224)) == (1000, 1)
@@ -23,7 +23,7 @@ end
2323
end
2424

2525
@testset "gMLP" begin
26-
@testset for mode in [:small, :base, :large] # :huge]
26+
@testset for mode in [:small, :base] # :large, # :huge]
2727
@testset for drop_path_rate in [0.0, 0.5]
2828
m = gMLP(mode; drop_path_rate)
2929
@test size(m(x_224)) == (1000, 1)

0 commit comments

Comments
 (0)