Closed CarloLucibello closed 1 year ago
Fixed in #125
ulia> using MLUtils, Test
julia> x = [[1,2,3], [4,5,6]]
2-element Vector{Vector{Int64}}:
[1, 2, 3]
[4, 5, 6]
julia> @inferred batch(x)
3×2 Matrix{Int64}:
1 4
2 5
3 6
julia> @inferred stack(x; dims=1)
2×3 Matrix{Int64}:
1 2 3
4 5 6
The problem could be due to a brodcasted call to
unsqueeze
, on whichstack
relies: