Error in "on_advance_start" when data-loader's sampler is a NumPy array #13320
Labels
bug
Something isn't working
data handling
Generic data-related topic
good first issue
Good for newcomers
Milestone
🐛 Bug
When using a NumPy array as sampler for a PyTorch data loader the check
in "on_advance_start", raises the following exception:
To Reproduce
Expected behavior
The error is not raised.
Environment
Additional context
An easy solution is to change the code that generates the error to
if the only thing to check is that the sampler exists and is different from None.
cc @Borda @justusschock @awaelchli @ninginthecloud @rohitgr7 @otaj
The text was updated successfully, but these errors were encountered: