fix nested mapt

This commit is contained in:
Mike J Innes 2017-03-20 23:19:03 +00:00
parent eadf96605c
commit a5bd72753e

View File

@ -32,7 +32,7 @@ convertel(T::Type, xs::Batch) =
# TODO: remove this in favour of full batching semantics
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