Skip to content

error message in main_snli.py #15

@NiceMartin

Description

@NiceMartin

Hi,
I run the main_snli.py, but got an error message in
def create_batch(data,from_index, to_index):

I changed the following sentence
left_sents = torch.cat((dict[word].view(1, -1) for word in lsent))
to
left_sents = torch.cat([dict[word].view(1, -1) for word in lsent])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions