Closed MaximilianPi closed 2 weeks ago
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.
nnf_multi_head_attention_forward
Thanks @MaximilianPi !
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.