You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/matthias/miniconda3/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 530, in __next__
data = self._next_data()
File "/home/matthias/miniconda3/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 570, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "/home/matthias/miniconda3/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 52, in fetch
return self.collate_fn(data)
File "/home/matthias/github/pytorch_geometric/alpha/PL.py", line 32, in sample_fn
assert isinstance(self.data, torch.Tensor)
AssertionError
Notably, the code runs through for pytorch-lightning==1.5.10 and when I let MyDataLoader inherit directly from torch.utils.data.DataLoader.
I personally think this issue is related to overriding both __init__ from MyBaseDataLoader and MyDataLoaderhere.
🐛 Bug
This is the official bug report of my comment earlier (see #10680 (comment)).
which crashes with
Notably, the code runs through for
pytorch-lightning==1.5.10
and when I letMyDataLoader
inherit directly fromtorch.utils.data.DataLoader
.I personally think this issue is related to overriding both
__init__
fromMyBaseDataLoader
andMyDataLoader
here.cc @justusschock @awaelchli @ninginthecloud
The text was updated successfully, but these errors were encountered: