-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recurse into some arrays of arrays? #60
Comments
FWIW, CUDA.jl intentionally does not do this because it would imply allocating a device array on every kernel launch, at least when generalizing this to nested This could work fine with |
I wonder whether
adapt
should treat an Array of Arrays as a container, like a Tuple, rather than storage to be converted. Convert the innermost Array, not the outermost:I'm not exactly sure what the rule would be, perhaps something like
isbitstype(eltype(x))
is enough?This came up in JuliaGPU/CUDA.jl#1769, where CuIterator at present produces a
Vector{CuArray}
.The text was updated successfully, but these errors were encountered: