We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3a8d4d commit 09e8768Copy full SHA for 09e8768
src/batchs.jl
@@ -22,7 +22,7 @@ function ConcatenatedBatch((; field)::Batch)
22
ConcatenatedBatch(cat(field; dims=ndims(field)), vcat([0], field .|> size .|> last |> cumsum))
23
end
24
function stack_ConcatenatedBatch(x::AbstractVector{<:ConcatenatedBatch})
25
- field = Folds.mapreduce((a,b) ->cat(a, b; dims=ndims(a)), x) do a
+ field = mapreduce((a,b) ->cat(a, b; dims=ndims(a)), x) do a
26
a.field
27
28
offsets = vcat([0], getfield.(x, :lengths) .|> last)::Vector{Int} |> cumsum |> DropLast(1)
0 commit comments