Skip to content

Commit b3a8d4d

Browse files
committed
fix: fix issue
1 parent 450848f commit b3a8d4d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/batchs.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ function ConcatenatedBatch((; field)::Batch)
2222
ConcatenatedBatch(cat(field; dims=ndims(field)), vcat([0], field .|> size .|> last |> cumsum))
2323
end
2424
function stack_ConcatenatedBatch(x::AbstractVector{<:ConcatenatedBatch})
25-
field = mapreduce((a,b) ->cat(a.field, b.field; dims=ndims(a.field)), x) do a
26-
@info "vals" a
25+
field = Folds.mapreduce((a,b) ->cat(a, b; dims=ndims(a)), x) do a
2726
a.field
2827
end
2928
offsets = vcat([0], getfield.(x, :lengths) .|> last)::Vector{Int} |> cumsum |> DropLast(1)

0 commit comments

Comments
 (0)