You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I try to use the Flux.setup function, if my neural network (Chain) contains an Embedding layer, I get this error:
ERROR: MethodError: no method matching Embedding(::Bool)
Closest candidates are:
Embedding(::Integer, ::Integer; kw...) at ~/.julia/packages/Flux/kq9Et/src/deprecations.jl:67
Embedding(::Pair{<:Integer, <:Integer}; init) at ~/.julia/packages/Flux/kq9Et/src/layers/basic.jl:694
Embedding(::W) where W<:(AbstractMatrix) at ~/.julia/packages/Flux/kq9Et/src/layers/basic.jl:689
For example, this snippet fails:
m = Embedding(3=>1)
Flux.setup(Adam(), m)
It fails both on CPU and GPU
The text was updated successfully, but these errors were encountered:
Whenever I try to use the
Flux.setup
function, if my neural network (Chain
) contains anEmbedding
layer, I get this error:For example, this snippet fails:
It fails both on CPU and GPU
The text was updated successfully, but these errors were encountered: