Skip to content

Commit 09e8768

Browse files
committed
fix: fix issue
1 parent b3a8d4d commit 09e8768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/batchs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +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 = Folds.mapreduce((a,b) ->cat(a, b; dims=ndims(a)), x) do a
25+
field = mapreduce((a,b) ->cat(a, b; dims=ndims(a)), x) do a
2626
a.field
2727
end
2828
offsets = vcat([0], getfield.(x, :lengths) .|> last)::Vector{Int} |> cumsum |> DropLast(1)

0 commit comments

Comments
 (0)