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.

Error running DrQA

See original GitHub issue

I ran: python examples/drqa/train.py -t "#opensubtitles"

After 10 or 20 minutes:

05/25/2017 02:34:31 PM: [ Running validation... ]
Traceback (most recent call last):
  File "examples/drqa/train.py", line 180, in <module>
    main(opt)
  File "examples/drqa/train.py", line 118, in main
    valid_metric = validate(opt, doc_reader, iteration)
  File "examples/drqa/train.py", line 62, in validate
    valid_world.parley()
  File "/Users/bittlingmayer/Desktop/aca/ParlAI/parlai/core/worlds.py", line 221, in parley
    acts[1] = agents[1].act()
  File "/Users/bittlingmayer/Desktop/aca/ParlAI/parlai/agents/drqa/agents.py", line 157, in act
    [ex], null=self.word_dict['<NULL>'], cuda=self.opt['cuda']
  File "/Users/bittlingmayer/Desktop/aca/ParlAI/parlai/agents/drqa/utils.py", line 126, in batchify
    max_length = max([d.size(0) for d in docs])
  File "/Users/bittlingmayer/Desktop/aca/ParlAI/parlai/agents/drqa/utils.py", line 126, in <listcomp>
    max_length = max([d.size(0) for d in docs])
RuntimeError: dimension 0 out of range of 0D tensor at /Users/soumith/code/builder/wheel/pytorch-src/torch/lib/TH/generic/THTensor.c:24

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ajfischcommented, May 26, 2017

It has been tested on Squad and bAbI (the ones with answers in the context, e.g. tasks 1-5, 11-14, 16).

I’ll take a look and submit a fix whatever is going on here soon.

0reactions
jasewestoncommented, May 31, 2017

yes, a nice error message please!

On Wed, May 31, 2017 at 4:10 PM, Adam Fisch notifications@github.com wrote:

In my opinion, I think that it should be on the user to use the right tasks for the model (DrQA is not advertised to be a viable model for all of the tasks in ParlAI).

Therefore I think it is better to crash instead of silently skipping all of the examples. We could add a more descriptive error message…

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/facebookresearch/ParlAI/issues/101#issuecomment-305302326, or mute the thread https://github.com/notifications/unsubscribe-auth/AKjk-JOK2Fnqf2ks-Xa3SWJHu_poqVPYks5r_ckZgaJpZM4Nm7Dc .

Read more comments on GitHub >

github_iconTop Results From Across the Web

error running running build_db.py · Issue #231 - GitHub
Hello, I'm trying to run build_db.py on the nested directory of files returned by running WikiExtractor.py on the 2018 English wiki dump, ...
Read more >
Facebook DrQA error - Object arrays cannot be loaded when ...
I have installed DrQA - https://github.com/facebookresearch/DrQA. Now when I try to run it I get the following error:
Read more >
Super Elevation Diagram | OpenSite Wiki - OpenRoads
Problem Description. Can I create a Super Diagram with GEOPAK. Steps to Resolve. There is an old VBA application that will read the...
Read more >
How to repair corrupt AutoCAD drawings and fix its errors
If AUDIT fails to fix errors in your drawing then you can try using RECOVER tool as well. You can use this tool...
Read more >
NetIQ DRA REST Services Technical Reference
If the name is misspelled or the case is incorrect, the item may be ignored by the endpoint or it may cause the...
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