batch vcat
This commit is contained in:
parent
3c52622896
commit
e5df1c31dd
@ -60,6 +60,8 @@ rawbatch(xs::Batchable) = rawbatch(storage(xs))
|
|||||||
size(xs::Batchable) = size(storage(xs))
|
size(xs::Batchable) = size(storage(xs))
|
||||||
getindex(xs::Batchable, i) = getindex(storage(xs), i)
|
getindex(xs::Batchable, i) = getindex(storage(xs), i)
|
||||||
|
|
||||||
|
Base.vcat{T<:Batchable}(xs::T, ys::T)::T = vcat(rawbatch(xs), rawbatch(ys))
|
||||||
|
|
||||||
typerender(B::Type) = B
|
typerender(B::Type) = B
|
||||||
typerender(B::Type{<:Batchable}) =
|
typerender(B::Type{<:Batchable}) =
|
||||||
Row(Juno.typ("$(typename(B).name)"), text"{", typerender(eltype(B)), text"}")
|
Row(Juno.typ("$(typename(B).name)"), text"{", typerender(eltype(B)), text"}")
|
||||||
|
Loading…
Reference in New Issue
Block a user