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 701dc5b commit 96fad0cCopy full SHA for 96fad0c
src/batchs.jl
@@ -21,7 +21,7 @@ end
21
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{T}})::ConcatenatedBatch{T} where T
+function stack_ConcatenatedBatch(x::AbstractVector{ConcatenatedBatch{T}})::ConcatenatedBatch{T} where T
25
field = mapreduce((a,b) ->cat(a, b; dims=ndims(a)), x) do a
26
a.field
27
0 commit comments