Open Vilin97 opened 11 months ago
I don't think it would be impossible to make iterate(::DataLoader)
type stable, but it would be tricky since there are so many conditionally-applied wrappers here. @lorenzoh and @CarloLucibello thoughts? Do you recall why we moved away from creating the wrappers in the DataLoader constructor?
Is
DataLoader
type-unstable? Seems so. Does it have to be type-unstable?If it is type-unstable and it's the intended behavior, it would be great to add a sentence
This function is type-unstable
to the docstring.