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