Skip to content

Commit eb4fd59

Browse files
committed
Tweaks - I
1 parent 7615c69 commit eb4fd59

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/convnets/inception.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ struct Inceptionv4
340340
end
341341

342342
function Inceptionv4(; pretrain = false, inchannels = 3, drop_rate = 0.0, nclasses = 1000)
343-
layers = inceptionv4(; inchannels, dropout, nclasses)
343+
layers = inceptionv4(; inchannels, drop_rate, nclasses)
344344
pretrain && loadpretrain!(layers, "Inceptionv4")
345345
return Inceptionv4(layers)
346346
end

src/layers/normalise.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ function ChannelLayerNorm(sz::Integer, λ = identity; ϵ = 1.0f-5)
2424
return ChannelLayerNorm(diag, ϵ)
2525
end
2626

27-
(m::ChannelLayerNorm)(x) = m.diag(MLUtils.normalise(x; dims = ndims(x) - 1, ϵ = m.ϵ))
27+
(m::ChannelLayerNorm)(x) = m.diag(Flux.normalise(x; dims = ndims(x) - 1, ϵ = m.ϵ))

test/convnets.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ GC.safepoint()
208208
GC.gc()
209209

210210
@testset "ConvNeXt" verbose = true begin
211-
@testset for mode in [:small, :base, :large] # :tiny, #, :xlarge]
211+
@testset for mode in [:small, :base] #:large # :tiny, #, :xlarge]
212212
@testset for drop_path_rate in [0.0, 0.5]
213213
m = ConvNeXt(mode; drop_path_rate)
214214
@test size(m(x_224)) == (1000, 1)
@@ -223,7 +223,7 @@ GC.safepoint()
223223
GC.gc()
224224

225225
@testset "ConvMixer" verbose = true begin
226-
@testset for mode in [:small, :base, :large]
226+
@testset for mode in [:small, :base] # :large]
227227
m = ConvMixer(mode)
228228

229229
@test size(m(x_224)) == (1000, 1)

0 commit comments

Comments
 (0)