From a0acf34d77f9921877477958da358b99cd21c65f Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Tue, 16 Jan 2018 17:20:52 +0000 Subject: [PATCH] tuple method --- src/Adapt.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Adapt.jl b/src/Adapt.jl index a828c48..359e71c 100644 --- a/src/Adapt.jl +++ b/src/Adapt.jl @@ -8,4 +8,6 @@ adapt(T, x) = adapt_(T, x) adapt(T, x::RowVector) = RowVector(adapt(T, x.vec)) +adapt(T, xs::Tuple) = map(x -> adapt(T, x), xs) + end # module