question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: module 'torch.utils.data' has no attribute 'IterableDataset'

See original GitHub issue

when i perform script

torch.hub.list('pytorch/fairseq')

it apperared the error ‘AttributeError: module ‘torch.utils.data’ has no attribute ‘IterableDataset’’ in ‘fairseq/data/fairseq_dataset.py’

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
jalajthanakicommented, May 28, 2020

Hi Team, I’m using fairseq-master and PyTorch 1.5 version and I’m facing the same issue while running interactive.py script for my inference. Did anyone resolved this issue?

1reaction
WinnieHANcommented, Oct 15, 2020

Try PyTorch 1.6 version. In my machine, it’s solved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

module 'torch.utils.data' has no attribute 'IterableDataset ...
when i perform script torch.hub.list('pytorch/fairseq') it apperared the error 'AttributeError: module 'torch.utils.data' has no attribute ...
Read more >
module 'torch.utils.data' has no attribute 'IterableDataset' - nlp
Hi Team, I'm using fairseq and PyTorch 1.5 version and I'm facing the following issue while running interactive.py script. AttributeError: module ...
Read more >
AttributeError: module 'torch.utils' has no attribute 'data'
I am trying to run my PyTorch code on a Ubuntu server, it works well on my own computer, but it failed to...
Read more >
AttributeError: module 'torch.utils.data' has no attribute ...
然后重新装回pytorch1.1,在运行程序时一直报下面这个错误:AttributeError: module 'torch.utils.data' has no attribute 'IterableDataset' ...
Read more >
module 'torch.utils.data' has no attribute 'IterableDataset' - 简书
AttributeError : module 'torch.utils.data' has no attribute 'IterableDataset'. Shannen3206 关注. 2020.09.17 05:25:48 字数25. pytorch1.1.0环境下遇到的问题.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found