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
function LinearAlgebra.diagm(m, n, kv::Pair{<:Integer,<:AbstractThunk}...)
returndiagm(m, n, (k =>unthunk(v) for (k, v) in kv)...)
end
In particular, it is inadvertently adding a fallback diagm(m::Any, n::Any) definition. e.g. this leads to odd error messages as in this discourse thread.
The text was updated successfully, but these errors were encountered:
I think you only want this method when at least one argument has an AbstractThunk, i.e.
function LinearAlgebra.diagm(m, n, kv::Pair{<:Integer,<:AbstractThunk}, kvs::Pair{<:Integer,<:AbstractThunk}...)
returndiagm(m, n, (k =>unthunk(v) for (k, v) in (kv, kvs...))...)
end
This method is type piracy:
ChainRulesCore.jl/src/tangent_types/thunks.jl
Lines 65 to 67 in 486922d
In particular, it is inadvertently adding a fallback
diagm(m::Any, n::Any)
definition. e.g. this leads to odd error messages as in this discourse thread.The text was updated successfully, but these errors were encountered: