msamogh/nonechucks

Not compatible with PyTorch v1.2 any more

iyah4888 opened this issue · 2 comments

There is underline private API changes of the latest version of PyTorch.
That introduces the following error.

lib/python3.6/site-packages/nonechucks/__init__.py in <module>
      1 from .dataset import SafeDataset
      2 from .sampler import SafeSampler
----> 3 from .dataloader import SafeDataLoader
      4 
      5 __all__ = ['SafeDataset', 'SafeSampler', 'SafeDataLoader']

lib/python3.6/site-packages/nonechucks/dataloader.py in <module>
     42 
     43 
---> 44 class _SafeDataLoaderIter(data.dataloader._DataLoaderIter):
     45 
     46     def __init__(self, loader):

AttributeError: module 'torch.utils.data.dataloader' has no attribute '_DataLoaderIter'

Hi @iyah4888, thanks for raising the issue. This has been fixed in the latest release.

Has the problem been solved?