Closed tkf closed 4 years ago
I think it'd be fine for adapt(CuArray, x)
to support sparse arrays like this. However, that would have to happen in CuArrays.jl, not adapt.jl itself.
Thanks for the clarification. So I'll close this issue for now. Maybe I'll open a PR in CuArrays.jl later.
Currently, converting a matrix that could be dense or sparse requires explicit branching:
It would be nice if
adapt
can do something likeIs it in the scope of this package?