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
julia>identity([11]; unsupported =:keyword)
ERROR: MethodError: no method matching identity(::Array{Int64,2}; unsupported=:keyword)
You might have used a 2d row vector where a 1d column vector was required.
Note the difference between 1d column vector [1,2,3] and 2d row vector [123].
You can convert to a column vector with the vec() function.
Closest candidates are:identity(::Any) at operators.jl:511 got unsupported keyword argument "unsupported"
This seems to happen only with keyword arguments:
julia>identity([11], nothing)
ERROR: MethodError: no method matching identity(::Array{Int64,2}, ::Nothing)
Closest candidates are:identity(::Any) at operators.jl:511
The text was updated successfully, but these errors were encountered:
this fix may be imperfect if somehow it was a 1d/2d method error && keywords are presented? But in that case I assume user can remove the unsupported keyword and then see the 1d/2d error, so this is fine.
I couldn't find any issue tracking this:
This seems to happen only with keyword arguments:
The text was updated successfully, but these errors were encountered: