-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Type piracy breaks (dev::AbstractDevice)(d::DataLoader)
#2592
Comments
The situation is a little complicated, because I think the fix here would be to move |
Basically a I think that DeviceIterator handles things nicely We should just remove Line 5 in 9147e84
which is also undocumented. I would also remove the specialization Line 228 in 9147e84
If removed gpu(d) would create a DeviceIterator , as I think it should.I wouldn't mark it as a breaking change because we would still basically conform to the current docstring:
|
You're right, I was mixing up the actual |
Sorry for the blunt title, didn't know how to best describe it.
So, here's a MWE
on julia 1.11.3 in a clean environment:
I suspect the following code is problematic: https://github.com/FluxML/Flux.jl/blob/master/src/devices.jl. In particular the type piracy shouldn't be needed as the fallback
device(dataloader)
seems to already do the right thing (see also this Slack thread).The text was updated successfully, but these errors were encountered: