nicer convertel
This commit is contained in:
parent
e39c24fd86
commit
5cb30cecfe
@ -1,6 +1,6 @@
|
|||||||
export onehot, onecold, chunk, partition, batches, sequences
|
export onehot, onecold, chunk, partition, batches, sequences
|
||||||
|
|
||||||
convertel(T::Type, xs::AbstractArray) = map(x->convert(T, x), xs)
|
convertel(T::Type, xs::AbstractArray) = convert.(T, xs)
|
||||||
convertel{T}(::Type{T}, xs::AbstractArray{T}) = xs
|
convertel{T}(::Type{T}, xs::AbstractArray{T}) = xs
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user