seqmodel with raw arrays
This commit is contained in:
parent
f8a3b02c1d
commit
42a8117704
@ -151,4 +151,5 @@ end
|
||||
splitseq(xs) = unstack(rawbatch(xs), 2)
|
||||
joinseq(xs) = rebatchseq(stack(xs, 2))
|
||||
|
||||
(m::SeqModel)(x::BatchSeq) = joinseq(m.model((splitseq(x)...,)))
|
||||
(m::SeqModel)(x::AbstractArray) = stack(m((unstack(x, 2)...,)), 2)
|
||||
(m::SeqModel)(x::BatchSeq) = rebatchseq(m(rawbatch(x)))
|
||||
|
Loading…
Reference in New Issue
Block a user