Skip to content

Commit

Permalink
tuple method
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeInnes committed Jan 16, 2018
1 parent 87ba4fa commit a0acf34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Adapt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a0acf34

Please sign in to comment.