still need batchone
This commit is contained in:
parent
5357b1e9f9
commit
f6334e7e96
@ -27,3 +27,6 @@ end
|
|||||||
convertel(T::Type, xs::Batch) =
|
convertel(T::Type, xs::Batch) =
|
||||||
eltype(eltype(xs)) isa T ? xs :
|
eltype(eltype(xs)) isa T ? xs :
|
||||||
Batch(map(x->convertel(T, x), xs))
|
Batch(map(x->convertel(T, x), xs))
|
||||||
|
|
||||||
|
batchone(x) = Batch((x,))
|
||||||
|
batchone(x::Batch) = x
|
||||||
|
Loading…
Reference in New Issue
Block a user