OMEinsum.jl icon indicating copy to clipboard operation
OMEinsum.jl copied to clipboard

promote_type stack overflow

Open ArrogantGao opened this issue 1 year ago • 3 comments

In

@inline function get_size_dict(ixs, xs, size_info=nothing)
    LT = promote_type(eltype.(ixs)...)
    return get_size_dict!(ixs, xs, size_info===nothing ? Dict{LT,Int}() : size_info)
end

the function promote_type is directly used and I found when the eltype.(ixs) is large (greater that 10000 for example), it causes stack overflow.

ArrogantGao avatar Jan 02 '24 09:01 ArrogantGao