Skip to content

attention_scores= attention_scores + attention_mask #52

@Zeyu1226-mt

Description

@Zeyu1226-mt

Thanks for your contributions.
When I train model based on the setting: --max_seq_length 30 --max_seq_a_length 30 --max_img_seq_length 18, the error i get:
attention_scores= attention_scores + attention_mask
RuntimeError: The size of tensor a (471) must match the size of tensor b (48) at non-singleton dimension 3

I'm confused. I don't know what the problem is....

Could you please help me solve this problem? thank you

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