Skip to content

Conv with non homogenous array eltypes gives confusing error message #1421

Closed
@femtomc

Description

@femtomc
ERROR: LoadError: MethodError: no method matching Flux.Conv(::Array{Float64, 4}, ::Vector{Float32}, ::typeof(identity); stride=1, pad=0, dilation=1)
Closest candidates are:
  Flux.Conv(::F, ::A, ::V, ::Tuple{Vararg{Int64, N}}, ::Tuple{Vararg{Int64, M}}, ::Tuple{Vararg{Int64, N}}) where {N, M, F, A, V} at /home/mccoy/.julia/packages/Flux/q3zeA/src/layers/conv.jl:71 got unsupported keyword arguments "stride", "pad", "dilation"
  Flux.Conv(::AbstractArray{T, N}, ::Union{AbstractVector{T}, Flux.Zeros}, ::Any; stride, pad, dilation) where {T, N} at /home/mccoy/.julia/packages/Flux/q3zeA/src/layers/conv.jl:105
  Flux.Conv(::Tuple{Vararg{Integer, N}}, ::Pair{var"#s150", var"#s149"} where var"#s149"<:Integer where var"#s150"<:Integer, ::Any; init, stride, pad, dilation, weight, bias) where N at /home/mccoy/.julia/packages/Flux/q3zeA/src/layers/conv.jl:132

when using

Conv((5, 5), 10 => 20, identity; init = glorot_uniform64),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions