AttributeError: 'NoneType' object has no attribute 'task'
See original GitHub issueHi, when i try to generate translation from trained mode with command:
fairseq-interactive output --path checkpoints/fconv/checkpoint1.pt --beam 5 --cpu --task translation --optimizer sgd
I get error:
AttributeError: 'NoneType' object has no attribute 'task'
I tried this on Ubunu 20.04, Google Colab and i get the same error. I am using the newest version of fairseq
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:14
Top Results From Across the Web
AttributeError: 'NoneType' object has no attribute 'task' #3106
Hi, when i try to generate translation from trained mode with command: fairseq-interactive output --path checkpoints/fconv/checkpoint1.pt ...
Read more >Why do I get AttributeError: 'NoneType' object has no ...
NoneType means that instead of an instance of whatever Class or Object you think you're working with, you've actually got None .
Read more >AttributeError: 'NoneType' object has no attribute 'run'
I am getting this error when trying to create an ec2 instance. It does not matter if the instance already exists or not,...
Read more >AttributeError: 'NoneType' object has no attribute 'values' ...
AttributeError means that there was an Error that had to do with an Attribute request. In general, when you write x.y, y is...
Read more >AttributeError: 'NoneType' object has no attribute 'dtype'
Attribute errors in Python are generally raised when you try to access or call an attribute that a particular object type doesn't possess....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!
I managed to solve this by installing Fairseq via the Github Repo rather than via Pip Install.