fix nested mapt
This commit is contained in:
parent
eadf96605c
commit
a5bd72753e
@ -32,7 +32,7 @@ convertel(T::Type, xs::Batch) =
|
|||||||
# TODO: remove this in favour of full batching semantics
|
# TODO: remove this in favour of full batching semantics
|
||||||
|
|
||||||
mapt(f, x) = f(x)
|
mapt(f, x) = f(x)
|
||||||
mapt(f, xs::Tuple) = map(f, xs)
|
mapt(f, xs::Tuple) = map(x -> mapt(f, x), xs)
|
||||||
|
|
||||||
batchone(x) = Batch((x,))
|
batchone(x) = Batch((x,))
|
||||||
batchone(x::Batch) = x
|
batchone(x::Batch) = x
|
||||||
|
Loading…
Reference in New Issue
Block a user