Skip to content

Commit

Permalink
quality
Browse files Browse the repository at this point in the history
  • Loading branch information
dbogunowicz committed Apr 2, 2024
1 parent d00eeac commit 76d5d2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def forward(

if attn_weights.size() != (bsz * self.num_heads, tgt_len, src_len):
raise ValueError(
f"Attention weights should be of size {(bsz * self.num_heads, tgt_len, src_len)}, but is"
f"Attention weights should be of size {(bsz * self.num_heads, tgt_len, src_len)}, but is" # noqa
f" {attn_weights.size()}"
)

Expand Down

0 comments on commit 76d5d2e

Please sign in to comment.