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>using MLUtils, Test
julia> x = [[1,2,3], [4,5,6]]
2-element Vector{Vector{Int64}}:
[1, 2, 3]
[4, 5, 6]
julia>@inferredbatch(x)
ERROR:return type Matrix{Int64} does not match inferred return type Any
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] top-level scope
@ REPL[4]:1
julia>@inferredstack(x; dims=1)
ERROR:return type Matrix{Int64} does not match inferred return type Any
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] top-level scope
@ REPL[5]:1
The problem could be due to a brodcasted call to unsqueeze, on which stack relies:
julia>@inferredunsqueeze(x[1]; dims=1)
1×3 Matrix{Int64}:123
julia>f() =unsqueeze.(x; dims=1)
f (generic function with 1 method)
julia>@inferredf()
ERROR:return type Vector{Matrix{Int64}} does not match inferred return type Any
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] top-level scope
@ REPL[13]:1``
The text was updated successfully, but these errors were encountered:
The problem could be due to a brodcasted call to
unsqueeze
, on whichstack
relies:The text was updated successfully, but these errors were encountered: