Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attention_scores= attention_scores + attention_mask #52

Open
Accept-AI opened this issue Oct 24, 2023 · 1 comment
Open

attention_scores= attention_scores + attention_mask #52

Accept-AI opened this issue Oct 24, 2023 · 1 comment

Comments

@Accept-AI
Copy link

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

@Accept-AI
Copy link
Author

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

I solved the problem......
6cb5f2dc9f2f63522eb3029811bcfb8

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

No branches or pull requests

1 participant