I got the following error with this code:
nn = Chain(Dense(1024 => 1099, elu),
Dense(1099 => 512, selu),
BatchNorm(512, elu),
Dense(512 => 512, hardtanh),
BatchNorm(512),
Dropout(0.5),
Dense(512 => 12),
logsoftmax)
nn
MethodError: no method matching Flux.Dense(::Pair{Int64, Int64}, ::typeof(NNlib.elu))
Closest candidates are:
Flux.Dense(!Matched::M, ::Any) where M<:(AbstractMatrix) at ~/.julia/packages/Flux/7nTyc/src/layers/basic.jl:127
Flux.Dense(!Matched::M, ::Any, !Matched::F) where {M<:(AbstractMatrix), F} at ~/.julia/packages/Flux/7nTyc/src/layers/basic.jl:127
top-level scope@[Local: 1](http://localhost:1234/edit?id=c0bbfb8e-ba64-11ec-3d29-49181b646a1c#)[inlined]
after I changed the "=> " to "," it works fine, perhaps due to the flux is downgraded to 0.12 when installing DiffEqFlux.jl