ImportError: cannot import name 'Dataloader'

I am using PyTorch 1.0. Can anybody comments on this problem.

I am just testing

from torch.utils.data import Dataloader
Traceback (most recent call last):
File “”, line 1, in
ImportError: cannot import name ‘Dataloader’

Thanks

I was following the instructions on

https://pytorch.org/tutorials/beginner/ptcheat.html#

There is a typo. “Dataloader” should be “DataLoader”.

3 Likes

Good catch! Would you mind creating an issue so that we can fix this typo? If you don’t want to fix it yourself, could you please tag me?

Sorry for the delay… Just submitted. https://github.com/pytorch/pytorch/issues/26278