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

Having error while running train_extractive_reader.py #242

@tkabir1

Description

@tkabir1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions