Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Having error while running train_extractive_reader.py #242

Open
tkabir1 opened this issue Feb 3, 2023 · 1 comment
Open

Having error while running train_extractive_reader.py #242

tkabir1 opened this issue Feb 3, 2023 · 1 comment

Comments

@tkabir1
Copy link

tkabir1 commented Feb 3, 2023

When I am running
python3 train_extractive_reader.py encoder.sequence_length=350 train_files="./prediction_copy.json" dev_files="./prediction.json" gold_passages_src="./gold_passages_info/nq_dev.json" gold_passages_src_dev="./gold_passages_info/nq_dev_dev.json" output_dir="./test_reader/"
I am having the error:

input_ids = torch.stack([t for t in positives_selected + negatives_selected], dim=0)
RuntimeError: stack expects a non-empty TensorList

Can anyone please help me with that?

@gaishun
Copy link

gaishun commented Mar 14, 2023

Hi tkabir1 , I have the same problem.
By the way, are you using the same train_files and dev_files ? ( Actually, I do this.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants