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

fix key_padding_mask bug in nnf_multi_head_attention_forward #1208

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

MaximilianPi
Copy link
Contributor

fix key_padding_mask bug in nnf_multi_head_attention_forward (#1205).
Float masks are added to the attn_output_weights, while boolean masks fill attn_output_weights with -Inf.

@dfalbel dfalbel merged commit 6d277a8 into mlverse:libtorch/v2.5.1 Nov 11, 2024
1 of 7 checks passed
@dfalbel
Copy link
Member

dfalbel commented Nov 11, 2024

Thanks @MaximilianPi !

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

Successfully merging this pull request may close these issues.

2 participants